public void AddNode(ICompendiumNode node) { /*NodeLabelUIElement = new TextBlock(); * NodeLabelUIElement.Text = _nodeSettings.NodeDetails.Name; * NodeLabelUIElement.FontSize = NodeFontSize; * NodeLabelUIElement.TextWrapping = TextWrapping.Wrap; * NodeLabelUIElement.SetValue(Canvas.LeftProperty, TextLocation.X); * NodeLabelUIElement.SetValue(Canvas.TopProperty, TextLocation.Y); * NodeLabelUIElement.Width = TextLocation.Width; * NodeLabelUIElement.Height = TextLocation.Height; * * RectangleGeometry nodeClippingRect = new RectangleGeometry(); * nodeClippingRect.Rect = new Rect(0, 0, TextLocation.Width, TextLocation.Height); * NodeClippingGeometry = nodeClippingRect; * * Rectangle nodeUIElement = new Rectangle(); * nodeUIElement.Tag = this; * nodeUIElement.Fill = NodeImage; * nodeUIElement.SetValue(Canvas.LeftProperty, NodeUIElementLocation.X); * nodeUIElement.SetValue(Canvas.TopProperty, NodeUIElementLocation.Y); * nodeUIElement.Width = NodeUIElementLocation.Width; * nodeUIElement.Height = NodeUIElementLocation.Height; * NodeUIElement = nodeUIElement;*/ }
public void AddNode(ICompendiumNode node) { /*NodeLabelUIElement = new TextBlock(); NodeLabelUIElement.Text = _nodeSettings.NodeDetails.Name; NodeLabelUIElement.FontSize = NodeFontSize; NodeLabelUIElement.TextWrapping = TextWrapping.Wrap; NodeLabelUIElement.SetValue(Canvas.LeftProperty, TextLocation.X); NodeLabelUIElement.SetValue(Canvas.TopProperty, TextLocation.Y); NodeLabelUIElement.Width = TextLocation.Width; NodeLabelUIElement.Height = TextLocation.Height; RectangleGeometry nodeClippingRect = new RectangleGeometry(); nodeClippingRect.Rect = new Rect(0, 0, TextLocation.Width, TextLocation.Height); NodeClippingGeometry = nodeClippingRect; Rectangle nodeUIElement = new Rectangle(); nodeUIElement.Tag = this; nodeUIElement.Fill = NodeImage; nodeUIElement.SetValue(Canvas.LeftProperty, NodeUIElementLocation.X); nodeUIElement.SetValue(Canvas.TopProperty, NodeUIElementLocation.Y); nodeUIElement.Width = NodeUIElementLocation.Width; nodeUIElement.Height = NodeUIElementLocation.Height; NodeUIElement = nodeUIElement;*/ }