Ejemplo n.º 1
0
        public SelectionBoxAdorner(DiagramCanvas parent, Point startPoint)
            : base(parent)
        {
            this.diagram = parent;
            this.startPoint = startPoint;

            this.selectionBoxPen = new Pen(new SolidColorBrush(new Color() {R = 0, G = 122, B = 204, A = 50}), 1);
        }
Ejemplo n.º 2
0
 void DiagramItemLayoutUpdated(object sender, EventArgs e)
 {
     this.parentDiagram = VisualTreeHelper.GetParent(this) as DiagramCanvas;
     if (this.parentDiagram == null)
         throw new NullReferenceException("Can't find parent DiagramCanvas");
 }