public TreeViewBackend () { Tree = new ExTreeView(); Tree.Resources.MergedDictionaries.Add (TreeResourceDictionary); Tree.ItemTemplate = new HierarchicalDataTemplate { ItemsSource = new Binding ("Children") }; Tree.SetValue (VirtualizingStackPanel.IsVirtualizingProperty, true); }
public TreeViewBackend() { Tree = new ExTreeView(); Tree.Resources.MergedDictionaries.Add (TreeResourceDictionary); Tree.ItemTemplate = new HierarchicalDataTemplate { ItemsSource = new Binding ("Children") }; //VirtualizingStackPanel.SetIsVirtualizing (Tree, false); }
public TreeViewBackend() { Tree = new ExTreeView(); Tree.Resources.MergedDictionaries.Add(TreeResourceDictionary); Tree.ItemTemplate = new HierarchicalDataTemplate { ItemsSource = new Binding("Children") }; Tree.SetValue(VirtualizingStackPanel.IsVirtualizingProperty, true); }
private void FindParent() { FrameworkElement e = this; while (this.view == null && e != null) { this.view = e.Parent as ExTreeView; e = (FrameworkElement)e.Parent; } }
public ExTreeViewItem(ExTreeView view) : this() { this.view = view; }