Defines whether user interface can be closed while the control is in edit mode.
Remarks
Property specifies whether the user interface, containing the control, can be closed without displaying any kind of dialog informing the user about close operation and asking for conformation.
If property is set to True and control is in edit mode, upon user interface closure, a dialog appears asking the user if he wants to save changes or not or whether he wants to cancel user interface closure. If property is set to False, user interface is closed immediately and changes are not saved. The default value for the property is False.
Dialog does not only appear when a single user interface is closed but also upon logoff, if the control is in edit mode.
Example (MxSpace)
To see the defined TrackDirty property on a control (Grid) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click EquipmentPart.cs. Click the grid control and open Property Window. See the value True entered in the TrackDirty property.
To define TrackDirty property
- In Solution Explorer open MxPart component (EquipmentPart) containing the control (Grid) which must not close, while in edit mode, without conformation.
- Select the desired control (Grid) on the canvas.
- Open Property Window.
- In section Context define TrackDirty property. Select the desired value (True).