WPF: How can I stretch the middle child in a DockPanel?

You need to set DockPanel.Dock attached property for your elements and leave TextBox as the last element: <RadioButton HorizontalAlignment=”Stretch” HorizontalContentAlignment=”Stretch”> <DockPanel LastChildFill=”True”> <TextBlock DockPanel.Dock=”Left” VerticalAlignment=”Center” Text=”in location:” /> <Button DockPanel.Dock=”Right” Margin=”10,0,0,0″ Padding=”3,0″ Content=”…” /> <TextBox Margin=”10,0,0,0″> Path string </TextBox> </DockPanel> </RadioButton>

Why are some textboxes not accepting Control + A shortcut to select all by default

You might be looking for the ShortcutsEnabled property. Setting it to true would allow your text boxes to implement the Ctrl+A shortcut (among others). From the documentation: Use the ShortcutsEnabled property to enable or disable the following shortcut key combinations: CTRL+Z CTRL+E CTRL+C CTRL+Y CTRL+X CTRL+BACKSPACE CTRL+V CTRL+DELETE CTRL+A SHIFT+DELETE CTRL+L SHIFT+INSERT CTRL+R However, the … Read more

Multiline Textbox with automatic vertical scroll

According to this question: TextBox.ScrollToEnd doesn’t work when the TextBox is in a non-active tab You have to focus the text box, update the caret position and then scroll to end: Status.Focus(); Status.CaretIndex = Status.Text.Length; Status.ScrollToEnd(); EDIT Example TextBox: <TextBox TextWrapping=”Wrap” VerticalScrollBarVisibility=”Auto” AcceptsReturn=”True” Name=”textBox”/>