Gets or sets a value that specifies what action should be performed when the user hits the Del key.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C#
![]() |
---|
public DelKeyAction DelKeyAction { get; set; } |
Visual Basic
![]() |
---|
Public Property DelKeyAction As DelKeyAction |
A member of the DelKeyAction enumeration. The default value is DeleteSelectedItems.
Depending on this property value, the control can delete all selected items, delete only the active item, or ignore the Del key press. To prevent the user form deleting specific items, handle the NodeDeleting or LinkDeleting event and set e.Cancel = true if the selected item should not be deleted.
Set IsTabStop to false for the ScrollViewer that contains the Diagram control. Otherwise the diagram does not receive KeyDown events and cannot handle the Del key.