diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-07-09 18:22:21 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-07-19 00:20:56 +0300 |
commit | a5bce5bb0afa6a5bae9c76e4eeb80cbccfa7fb2e (patch) | |
tree | cc7484ffa531e6b4f1785d176620f2e70e1af576 | |
parent | 70748f154c503d8551d2af3ee7df1fe3b3869a3b (diff) |
[Win] Fix unselection in TreeViewItemEx
-rw-r--r-- | Xamarin.PropertyEditing.Windows/TreeViewItemEx.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Windows/TreeViewItemEx.cs b/Xamarin.PropertyEditing.Windows/TreeViewItemEx.cs index 79f7742..6500b39 100644 --- a/Xamarin.PropertyEditing.Windows/TreeViewItemEx.cs +++ b/Xamarin.PropertyEditing.Windows/TreeViewItemEx.cs @@ -178,6 +178,14 @@ namespace Xamarin.PropertyEditing.Windows } } + protected override void OnUnselected (RoutedEventArgs e) + { + TreeViewEx parent = GetParentTree (); + if (parent.SelectedTreeItem == this) { + parent.SelectedTreeItem = null; + } + } + protected override DependencyObject GetContainerForItemOverride () { return new TreeViewItemEx(); |