Skip to content

Commit

Permalink
[XWT] Fix for expanded nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
residuum authored and alanmcgovern committed Feb 13, 2015
1 parent 4cacbc6 commit dc6cf1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Xwt.WPF/Xwt.WPFBackend/ExTreeViewItem.cs
Expand Up @@ -65,7 +65,10 @@ protected override void OnExpanded (RoutedEventArgs e)

protected override void OnCollapsed(RoutedEventArgs e)
{
var node = (TreeStoreNode)DataContext;
var node = DataContext as TreeStoreNode;
if (node == null) {
return;
}
if (!IsExpanded)
UnselectChildren((object o, ExTreeViewItem i) =>
{
Expand Down

0 comments on commit dc6cf1f

Please sign in to comment.