Пример #1
0
		public TreeViewBackend ()
		{
			Tree = new ExTreeView();
			Tree.Resources.MergedDictionaries.Add (TreeResourceDictionary);
			Tree.ItemTemplate = new HierarchicalDataTemplate { ItemsSource = new Binding ("Children") };
			Tree.SetValue (VirtualizingStackPanel.IsVirtualizingProperty, true);
		}
Пример #2
0
        public TreeViewBackend()
        {
            Tree = new ExTreeView();
            Tree.Resources.MergedDictionaries.Add (TreeResourceDictionary);
            Tree.ItemTemplate = new HierarchicalDataTemplate { ItemsSource = new Binding ("Children") };

            //VirtualizingStackPanel.SetIsVirtualizing (Tree, false);
        }
Пример #3
0
 public TreeViewBackend()
 {
     Tree = new ExTreeView();
     Tree.Resources.MergedDictionaries.Add(TreeResourceDictionary);
     Tree.ItemTemplate = new HierarchicalDataTemplate {
         ItemsSource = new Binding("Children")
     };
     Tree.SetValue(VirtualizingStackPanel.IsVirtualizingProperty, true);
 }
Пример #4
0
        private void FindParent()
        {
            FrameworkElement e = this;

            while (this.view == null && e != null)
            {
                this.view = e.Parent as ExTreeView;
                e         = (FrameworkElement)e.Parent;
            }
        }
Пример #5
0
 public ExTreeViewItem(ExTreeView view)
     : this()
 {
     this.view = view;
 }
Пример #6
0
 public ExTreeViewItem(ExTreeView view)
     : this()
 {
     this.view = view;
 }
Пример #7
0
 private void FindParent()
 {
     FrameworkElement e = this;
     while (this.view == null && e != null) {
         this.view = e.Parent as ExTreeView;
         e = (FrameworkElement)e.Parent;
     }
 }