diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-09-09 18:48:51 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-09-09 20:33:18 +0300 |
commit | a17971a994531d205de392a121d6e5b40f9c1146 (patch) | |
tree | ac480a95eb9b422212d95cca1dc9713ce6445e1b /Xamarin.PropertyEditing.Windows | |
parent | 13f0ac74aef2df9d30367ebe40284fa41933eb85 (diff) |
[Win] Ensure input mode selections are accessible
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r-- | Xamarin.PropertyEditing.Windows/Themes/Resources.xaml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml index b47da40..29cfbe0 100644 --- a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml +++ b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml @@ -287,7 +287,13 @@ </Grid.ColumnDefinitions> <local:TextBoxEx x:Name="TextBox" Grid.Column="0" FocusSelectsAll="True" AutomationProperties.Name="{Binding Property.Name,Mode=OneTime}" Text="{Binding Value,UpdateSourceTrigger=Explicit}" VerticalContentAlignment="Center" IsEnabled="{Binding IsInputEnabled}" /> - <ComboBox Grid.Column="1" Visibility="{Binding HasInputModes,Mode=OneTime,Converter={StaticResource BoolToVisibilityConverter}}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" ItemsSource="{Binding InputModes,Mode=OneTime}" SelectedItem="{Binding InputMode,Mode=TwoWay}" DisplayMemberPath="Identifier" /> + <ComboBox Grid.Column="1" Visibility="{Binding HasInputModes,Mode=OneTime,Converter={StaticResource BoolToVisibilityConverter}}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" ItemsSource="{Binding InputModes,Mode=OneTime}" SelectedItem="{Binding InputMode,Mode=TwoWay}" DisplayMemberPath="Identifier"> + <ComboBox.ItemContainerStyle> + <Style TargetType="ComboBoxItem"> + <Setter Property="AutomationProperties.Name" Value="{Binding Identifier,Mode=OneTime}" /> + </Style> + </ComboBox.ItemContainerStyle> + </ComboBox> </Grid> </ControlTemplate> </Setter.Value> @@ -2133,7 +2139,13 @@ </Grid.ColumnDefinitions> <ContentPresenter Grid.Column="0" Content="{Binding}" ContentTemplateSelector="{StaticResource NumericTemplateSelector}" AutomationProperties.Name="{Binding Property.Name,Mode=OneTime}" /> - <ComboBox Grid.Column="1" Visibility="{Binding HasInputModes,Mode=OneTime,Converter={StaticResource BoolToVisibilityConverter}}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" ItemsSource="{Binding InputModes,Mode=OneTime}" SelectedItem="{Binding InputMode,Mode=TwoWay}" DisplayMemberPath="Identifier" /> + <ComboBox Grid.Column="1" Visibility="{Binding HasInputModes,Mode=OneTime,Converter={StaticResource BoolToVisibilityConverter}}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" ItemsSource="{Binding InputModes,Mode=OneTime}" SelectedItem="{Binding InputMode,Mode=TwoWay}" DisplayMemberPath="Identifier"> + <ComboBox.ItemContainerStyle> + <Style TargetType="ComboBoxItem"> + <Setter Property="AutomationProperties.Name" Value="{Binding Identifier,Mode=OneTime}" /> + </Style> + </ComboBox.ItemContainerStyle> + </ComboBox> </Grid> </ControlTemplate> |