コード例 #1
0
		public SampleDataContext()
		{
			TreeViewDS = new TreeViewDataSource();
			ObservableInts = new ReadOnlyDispatchedObservableCollection<int>( privateCollection );

			RegisterCommand(
				AddItems,
				param => true,
				param => AddIntItems() );

			RegisterCommand(
				ExpandTreeView,
				param => true,
				param => TreeViewDS.ExpandAll() );
		}
コード例 #2
0
ファイル: Window1.xaml.cs プロジェクト: neostoic/TraceLab
        public SampleDataContext()
        {
            TreeViewDS     = new TreeViewDataSource();
            ObservableInts = new ReadOnlyDispatchedObservableCollection <int>(privateCollection);

            RegisterCommand(
                AddItems,
                param => true,
                param => AddIntItems());

            RegisterCommand(
                ExpandTreeView,
                param => true,
                param => TreeViewDS.ExpandAll());
        }