From 82ca308a3b8825a1bcbe4c5c50d0329a76e96015 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 3 Dec 2016 19:32:59 +0100 Subject: [PATCH] Improved Accessibility support. SharpTreeView now exposes the proper UI Automation control types. Keyboard navigation using the tab key now works properly. --- ILSpy/MainWindow.xaml | 11 ++- ILSpy/TextView/DecompilerTextView.xaml | 2 +- SharpTreeView/ICSharpCode.TreeView.csproj | 8 +- SharpTreeView/SharpTreeView.cs | 6 +- SharpTreeView/SharpTreeViewAutomationPeer.cs | 21 ++++++ SharpTreeView/SharpTreeViewItem.cs | 5 ++ .../SharpTreeViewItemAutomationPeer.cs | 74 +++++++++++++++++++ 7 files changed, 119 insertions(+), 8 deletions(-) create mode 100644 SharpTreeView/SharpTreeViewAutomationPeer.cs create mode 100644 SharpTreeView/SharpTreeViewItemAutomationPeer.cs diff --git a/ILSpy/MainWindow.xaml b/ILSpy/MainWindow.xaml index 2c12afc6c..23788f68a 100644 --- a/ILSpy/MainWindow.xaml +++ b/ILSpy/MainWindow.xaml @@ -44,7 +44,7 @@ - + @@ -57,7 +57,7 @@ + DockPanel.Dock="Top" ToolBarTray.IsLocked="True" KeyboardNavigation.TabNavigation="None">