|
Hi I have created few custom nodes and I have set the Handles Style to SquareHandles2. My problem is when i try to resize the node , I could not able to do that.
Is it possible to resize custom nodes.
One of my custom nodes created is: public SwitchNode(SwitchNode prototype) : base(prototype) { DefaultStyleKey = typeof(SwitchNode); Title = prototype.Title; FullName = prototype.FullName; this.HandlesStyle = HandlesStyle.SquareHandles2;
SolidColorBrush blue = new SolidColorBrush(Color.FromArgb(200, 0, 0, 255)); SolidColorBrush green = new SolidColorBrush(Color.FromArgb(200, 0, 255, 0)); SolidColorBrush red = new SolidColorBrush(Color.FromArgb(200, 255, 0, 0));
AnchorPattern apat2 = new AnchorPattern(new AnchorPoint[] { new AnchorPoint(0, 50, true, true, MarkStyle.Cross), new AnchorPoint(85,50, true, true, MarkStyle.Cross) });
this.AnchorPattern = apat2; }
How can I resize my Switch node on the diagram.
Thanks & Regards Padma
|