How can I vertically align a TextBox inside a StackPanel?
In the following XAML, the word "Test" centers horizontally but not vertically. How can I get it to center vertically? <Window x:Class="TestVerticalAlign2343.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowStartupLocation="CenterScreen" Title="Window1" Height="768" Width="1024"> <DockPanel LastChildFill="True"> <Slider x:Name="TheSlider" DockPanel.Dock="Left" Orientation="Vertical" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Minimum="0" Maximum="10" Cursor="Hand" Value="{Binding