Skip to content

Commit

Permalink
Merge pull request #324 from siegfriedpammer/accessibility-fixes
Browse files Browse the repository at this point in the history
Navigator Window Accessibility fixes
  • Loading branch information
Dirkster99 authored Feb 12, 2022
2 parents dd9d2fd + 9abf821 commit c9f8661
Show file tree
Hide file tree
Showing 8 changed files with 235 additions and 56 deletions.
3 changes: 3 additions & 0 deletions source/Components/AvalonDock.Themes.Aero/Theme.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,7 @@
<Setter Property="Padding" Value="5,0,5,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="AutomationProperties.Name" Value="{Binding LayoutElement.Title}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
Expand Down Expand Up @@ -1645,6 +1646,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_ToolWindows}" />
<ListBox
x:Name="PART_AnchorableListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_ToolWindows}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down Expand Up @@ -1681,6 +1683,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_Files}" />
<ListBox
x:Name="PART_DocumentListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_Files}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down
3 changes: 3 additions & 0 deletions source/Components/AvalonDock.Themes.Expression/Theme.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,7 @@
<Setter Property="Padding" Value="5,0,5,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="AutomationProperties.Name" Value="{Binding LayoutElement.Title}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
Expand Down Expand Up @@ -1547,6 +1548,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_ToolWindows}" />
<ListBox
x:Name="PART_AnchorableListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_ToolWindows}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down Expand Up @@ -1583,6 +1585,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_Files}" />
<ListBox
x:Name="PART_DocumentListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_Files}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down
3 changes: 3 additions & 0 deletions source/Components/AvalonDock.Themes.Metro/Theme.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,7 @@
<Setter Property="Padding" Value="5,0,5,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="AutomationProperties.Name" Value="{Binding LayoutElement.Title}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
Expand Down Expand Up @@ -1690,6 +1691,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_ToolWindows}" />
<ListBox
x:Name="PART_AnchorableListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_ToolWindows}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down Expand Up @@ -1726,6 +1728,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_Files}" />
<ListBox
x:Name="PART_DocumentListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_Files}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down
3 changes: 3 additions & 0 deletions source/Components/AvalonDock.Themes.VS2010/Theme.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,7 @@
<Setter Property="Padding" Value="5,0,5,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="AutomationProperties.Name" Value="{Binding LayoutElement.Title}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
Expand Down Expand Up @@ -1725,6 +1726,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_ToolWindows}" />
<ListBox
x:Name="PART_AnchorableListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_ToolWindows}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down Expand Up @@ -1761,6 +1763,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_Files}" />
<ListBox
x:Name="PART_DocumentListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_Files}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2477,6 +2477,7 @@
<Setter Property="Padding" Value="5,0,5,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="AutomationProperties.Name" Value="{Binding LayoutElement.Title}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
Expand Down Expand Up @@ -2618,6 +2619,7 @@
Text="{x:Static avalonDockProperties:Resources.Active_ToolWindows}" />
<ListBox
x:Name="PART_AnchorableListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_ToolWindows}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down Expand Up @@ -2655,6 +2657,7 @@

<ListBox
x:Name="PART_DocumentListBox"
AutomationProperties.Name="{x:Static avalonDockProperties:Resources.Active_Files}"
Grid.Row="1"
MaxHeight="400"
Background="Transparent"
Expand Down
Loading

0 comments on commit c9f8661

Please sign in to comment.