This topic provides information on how to restrict certain user interactions of the xamDiagram™ control.
The following topics are prerequisites to understanding this topic:
By default the control allows editing of all items by either double clicking on a node or by selecting a node and pressing the F2 key or by executing the EnterEditMode
command. If you need to restrict the user from editing items on a global level you can set the xamDiagram's AllowEdit boolean property to false. By default this property is set to true.
In addition you can restrict editing on a node level using the AllowEdit nullable boolean property. By default this property is set to null which means the resolved value will be obtained from the xamDiagram's AllowEdit
property.
By default the control allows changing the size of the items through the user interface. If you need to restrict the user from resizing items on a global level you can set the xamDiagram's AllowResize boolean property to false. By default this property is set to true.
In addition you can restrict resizing on an item level using the AllowResize nullable boolean property. By default this property is set to null which means the resolved value will be obtained from the xamDiagram's AllowResize
property.
By default the control allows deleting of items not only using the Delete key but also when executing the clipboard’s Cut
, Undo
and Redo
commands. If you need to restrict the user from deleting items on a global level you can set the xamDiagram's AllowDelete boolean property to false. By default this property is set to true.
In addition you can restrict deleting on an item level using the AllowDelete nullable boolean property. By default this property is set to null which means the resolved value will be obtained from the xamDiagram's AllowDelete
property.
The following topics provide additional information related to this topic.