protected void DealWithLabelContentChanged() { MakeVisual(); if (ParentObject is DNode) { ParentGraph.ResizeNodeToLabel(ParentObject as DNode); } }
protected void DealWithLabelContentChanged(System.Windows.Size newSize) { Label.Width = newSize.Width; Label.Height = newSize.Height; if (ParentObject is DNode) { ParentGraph.ResizeNodeToLabel(ParentObject as DNode); } }