Ejemplo n.º 1
0
        public object Clone()
        {
            XData data = new XData();

            data.LineColor = this.LineColor;
            data.LineWidth = this.LineWidth;
            data.Type      = this.Type;
            data.Path      = this.Path;
            return(data);
        }
Ejemplo n.º 2
0
        public static UIElement Render(CanvasVector ownerControl, Thickness rect, XData data, XCommand cmd)
        {
            SimpleFigures result = new SimpleFigures(rect, data);

            result.ContextMenuSetUp(cmd);
            ownerControl.canvas.Children.Add(result);
            figures.Add(result);

            return(result);
        }