diff --git a/Sample Applications/WPFGallery/MainWindow.xaml.cs b/Sample Applications/WPFGallery/MainWindow.xaml.cs index d692614b..3f164b4b 100644 --- a/Sample Applications/WPFGallery/MainWindow.xaml.cs +++ b/Sample Applications/WPFGallery/MainWindow.xaml.cs @@ -89,7 +89,7 @@ private void ControlsList_SelectedItemChanged() var tvi = ControlsList.ItemContainerGenerator.ContainerFromItem(navItem) as TreeViewItem; if(tvi != null) { - tvi.IsExpanded = true; + tvi.IsExpanded = !tvi.IsExpanded; tvi.BringIntoView(); } }