Visual Basic (Declaration) | |
---|---|
Public Overridable Sub DoKeyDown( _ ByVal e As KeyEventArgs _ ) |
C# | |
---|---|
public virtual void DoKeyDown( KeyEventArgs e ) |
Parameters
- e
By default this just calls DoCancel if the key is the ESCAPE key.
In WPF this key event method isn't called because of the command mechanism. If you want this method to be called, override DoStart to call this.Diagram.CommandHandler.RemoveStandardBindings()
and override DoStop to call this.Diagram.CommandHandler.AddStandardBindings()
. In Silverlight there are no commands, so this method is always called.