This topic has not yet been rated - Rate this topic

ShapeElement.KeyPress Event

Occurs when the user presses and releases a key.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public event DiagramKeyPressEventHandler KeyPress

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ