public SampleDataContext() { TreeViewDS = new TreeViewDataSource(); ObservableInts = new ReadOnlyDispatchedObservableCollection<int>( privateCollection ); RegisterCommand( AddItems, param => true, param => AddIntItems() ); RegisterCommand( ExpandTreeView, param => true, param => TreeViewDS.ExpandAll() ); }
public SampleDataContext() { TreeViewDS = new TreeViewDataSource(); ObservableInts = new ReadOnlyDispatchedObservableCollection <int>(privateCollection); RegisterCommand( AddItems, param => true, param => AddIntItems()); RegisterCommand( ExpandTreeView, param => true, param => TreeViewDS.ExpandAll()); }