Diagram::ActiveDiagramView Property
Visual Studio 2015
Gets the active view for the diagram.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Property Value
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramView^The active view for the diagram.
public override void CreateConnection(DslDiagrams::ShapeElement sourceShapeElement, DslDiagrams::ShapeElement targetShapeElement, DslDiagrams::PaintFeedbackArgs paintFeedbackArgs) { System.Collections.Generic.Dictionary<object, object> contextInfo = sourceShapeElement.Store.TransactionManager.CurrentTransaction.Context.ContextInfo; DslDiagrams::MouseAction activeMouseAction = sourceShapeElement.Diagram.ActiveDiagramView.ActiveMouseAction; contextInfo.Add(Constant.MouseToPointKey, activeMouseAction.CurrentPoint); contextInfo.Add(Constant.MouseFromPointKey, activeMouseAction.MouseDownPoint); base.CreateConnection(sourceShapeElement, targetShapeElement, paintFeedbackArgs); }
Show: