Answer the question
In order to leave comments, you need to log in
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
<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 questionAsk a Question
731 491 924 answers to any question