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

@ -6,7 +6,8 @@
xmlns:com="clr-namespace:ServerManagerTool.Common;assembly=ServerManager.Common"
MinWidth="400" MinHeight="400" Width="640" Height="480" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" ResizeMode="CanResizeWithGrip"
Loaded="Window_Loaded"
Icon="../Art/favicon.ico" Title="{DynamicResource VersionFeedWindow_Title}">
Icon="../Art/favicon.ico" Title="{DynamicResource VersionFeedWindow_Title}"
FocusManager.FocusedElement="{Binding ElementName=FeedEntriesComboxBox}">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
@ -28,7 +29,7 @@
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Margin="5,5,0,0" Content="{DynamicResource VersionFeedWindow_VersionFilterLabel}"/>
<ComboBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,0" ItemsSource="{Binding FeedEntries}" SelectedValue="{Binding SelectedFeedEntry}" ToolTip="{DynamicResource VersionFeedWindow_VersionFilterTooltip}">
<ComboBox x:Name="FeedEntriesComboxBox" Grid.Row="0" Grid.Column="1" Margin="5,5,5,0" ItemsSource="{Binding FeedEntries}" SelectedValue="{Binding SelectedFeedEntry}" ToolTip="{DynamicResource VersionFeedWindow_VersionFilterTooltip}">
<ComboBox.ItemContainerStyle>
<Style TargetType="{x:Type ComboBoxItem}" >
<Setter Property="Height" Value="20" />