Window Control Focus Changes

- set the default focus control for all the windows.
This commit is contained in:
Brett Hewitson 2022-06-21 11:23:10 +10:00
parent 4199ab6160
commit 0b5d7c933a
41 changed files with 115 additions and 73 deletions

View file

@ -11,6 +11,7 @@
xmlns:enum="clr-namespace:ServerManagerTool.Enums"
mc:Ignorable="d"
d:DesignWidth="800"
FocusManager.FocusedElement="{Binding ElementName=ProfileNameTextBox}"
x:Name="SettingsControl">
<UserControl.Resources>
<ResourceDictionary>
@ -83,7 +84,7 @@
<DockPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="2" DataContext="{Binding Profile}" VerticalAlignment="Center" >
<Label DockPanel.Dock="Left" FontSize="15" Content="{DynamicResource ServerSettings_ProfileLabel}" ToolTip="{Binding ProfileToolTip}"/>
<TextBox VerticalContentAlignment="Center" SourceUpdated="ProfileName_SourceUpdated">
<TextBox x:Name="ProfileNameTextBox" VerticalContentAlignment="Center" SourceUpdated="ProfileName_SourceUpdated">
<Validation.ErrorTemplate>
<ControlTemplate>
<StackPanel>