ShapeElement::MouseDown Event

 

Occurs when the user presses the mouse button.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
event DiagramMouseEventHandler^ MouseDown {
	void add(DiagramMouseEventHandler^ value);
	void remove(DiagramMouseEventHandler^ value);
}

A convenient place to add a listener for this event is InitializeInstanceResources. To override this method in your custom code, you must set the Generates Double Derived property for the shape in DSL Definition and then click Transform All Templates in Solution Explorer.

Return to top
Show: