¡@

Home 

c# Programming Glossary: isexpanded

Get SelectedItem from TreeView?

http://stackoverflow.com/questions/1238304/get-selecteditem-from-treeview

Path PresentationsViewModel Grid.Column 1 TreeViewItem IsExpanded True Header Objects A List DisplayMemberPath Name ItemsSource.. Binding Path MyItem.ListA TreeViewItem TreeViewItem IsExpanded True Header Objects B List DisplayMemberPath Name ItemsSource.. Binding Path MyItem.ListB TreeViewItem TreeViewItem IsExpanded True Header Objects C List DisplayMemberPath Name ItemsSource..

How to save the IsExpanded state in group headers of a listview

http://stackoverflow.com/questions/2808777/how-to-save-the-isexpanded-state-in-group-headers-of-a-listview

to save the IsExpanded state in group headers of a listview I have quite a tricky.. ControlTemplate TargetType x Type GroupItem Expander IsExpanded True Expander.Header DockPanel TextBlock Text Binding Path.. GroupStyle ListView.GroupStyle As you can see the IsExpanded property of the Expander is set to true. This means that whenever..

WPF/MVVM - how to handle double-click on TreeViewItems in the ViewModel?

http://stackoverflow.com/questions/4497825/wpf-mvvm-how-to-handle-double-click-on-treeviewitems-in-the-viewmodel

Style TargetType x Type TreeViewItem Setter Property IsExpanded Value Binding IsExpanded Mode TwoWay Setter Property IsSelected.. TreeViewItem Setter Property IsExpanded Value Binding IsExpanded Mode TwoWay Setter Property IsSelected Value Binding IsSelected..

Is there any way to JSON.NET-serialize a subclass of List<T> that also has extra properties?

http://stackoverflow.com/questions/5863496/is-there-any-way-to-json-net-serialize-a-subclass-of-listt-that-also-has-extra

is simply a subclass of a List T which then adds an IsExpanded property for use by the UI. public class LocationList List Location.. UI. public class LocationList List Location public bool IsExpanded get set public class RootViewModel public LocationList RootLocations.. I serialize them to JSON it all works great except the IsExpanded property on the LocationList class is excluded. Only the list's..