private void EdgeAdded(VertexChangeEventArgs e) { if (!IsFilled) { TreeVisualiser.ClearAllItems_Reccurent(this); } Items.Add(TreeParent.GetTreeViewItem(e.Edge, true)); }
protected override void OnExpanded(RoutedEventArgs ea) { if (IsFilled == false) { TreeVisualiser.ClearAllItems_Reccurent(this); foreach (IEdge ee in ((IEdge)Tag).To) { Items.Add(TreeParent.GetTreeViewItem(ee, true)); } } IsFilled = true; //base.OnExpanded(ea); }