D
D
DarkByte20152016-05-14 11:37:10
WPF
DarkByte2015, 2016-05-14 11:37:10

Why is the TextBox not stretching?

Please tell me why the TextBox stubbornly does not want to stretch?

<DockPanel LastChildFill="True" Height="25">
    <TextBox HorizontalAlignment="Stretch" Margin="0,0,5,0"/>
    <Button DockPanel.Dock="Right" Content="Send" MaxWidth="50"/>
</DockPanel>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#algooptimize #bottize, 2016-05-14
@DarkByte2015

<DockPanel LastChildFill="True" Height="25">

            <Button DockPanel.Dock="Right" Content="Send" MaxWidth="50"/>
            <TextBox HorizontalAlignment="Stretch" Margin="0,0,5,0" Background="Blue"/>
        </DockPanel>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question