diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-09-09 19:21:43 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-09-09 20:49:16 +0300 |
commit | acf9c6de20c387e1b6daba92c522d91cb2efd5b3 (patch) | |
tree | 13effe46a74657e81aec9aae212c1006965fa667 /Xamarin.PropertyEditing.Windows | |
parent | 7d056f6f706cfd3370f5b9fc87380aa9d615e18c (diff) |
[Win] Improve a11y on type tree
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r-- | Xamarin.PropertyEditing.Windows/Themes/Resources.xaml | 12 | ||||
-rw-r--r-- | Xamarin.PropertyEditing.Windows/TypeSelectorControl.xaml | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml index 8e38be2..14205b0 100644 --- a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml +++ b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml @@ -2422,6 +2422,11 @@ </Grid> </DataTemplate> </HierarchicalDataTemplate.ItemTemplate> + <HierarchicalDataTemplate.ItemContainerStyle> + <Style TargetType="local:TreeViewItemEx" BasedOn="{StaticResource SelectionTreeViewItem}"> + <Setter Property="AutomationProperties.Name" Value="{Binding Name,Mode=OneTime}" /> + </Style> + </HierarchicalDataTemplate.ItemContainerStyle> <StackPanel Orientation="Horizontal"> <!-- Icon --> @@ -2437,6 +2442,13 @@ </HierarchicalDataTemplate> </Setter.Value> </Setter> + <Setter Property="ItemContainerStyle"> + <Setter.Value> + <Style TargetType="local:TreeViewItemEx" BasedOn="{StaticResource SelectionTreeViewItem}"> + <Setter Property="AutomationProperties.Name" Value="{Binding Key,Mode=OneTime}" /> + </Style> + </Setter.Value> + </Setter> </Style> <Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}"> diff --git a/Xamarin.PropertyEditing.Windows/TypeSelectorControl.xaml b/Xamarin.PropertyEditing.Windows/TypeSelectorControl.xaml index 538dd3f..8c4333d 100644 --- a/Xamarin.PropertyEditing.Windows/TypeSelectorControl.xaml +++ b/Xamarin.PropertyEditing.Windows/TypeSelectorControl.xaml @@ -17,7 +17,7 @@ <RowDefinition Height="Auto" /> </Grid.RowDefinitions> - <local:TextBoxEx Margin="0,4,0,0" Style="{DynamicResource SearchTextBox}" MinHeight="20" Text="{Binding FilterText,UpdateSourceTrigger=PropertyChanged}" ShowClearButton="True" Hint="{x:Static prop:Resources.SearchObjectsTitle}" /> + <local:TextBoxEx Margin="0,4,0,0" Style="{DynamicResource SearchTextBox}" MinHeight="20" Text="{Binding FilterText,UpdateSourceTrigger=PropertyChanged}" ShowClearButton="True" Hint="{x:Static prop:Resources.SearchObjectsTitle}" AutomationProperties.Name="{x:Static prop:Resources.SearchObjectsTitle}" /> <ProgressBar Grid.Row="1" IsIndeterminate="True" Height="10" Visibility="{Binding IsLoading,Converter={StaticResource BoolToVisibilityConverter}}" /> <local:TreeViewEx x:Name="tree" Grid.Row="1" Margin="0,4,0,0" Style="{DynamicResource TypeTreeView}" ItemsSource="{Binding Types}" SelectedDataItem="{Binding SelectedType,Mode=TwoWay}" /> |