Northwoods.GoSilverlight 1.3.5 Assembly
IsModified Property
See Also  Send Feedback
Northwoods.GoXam.Model Namespace > DiagramModel Class : IsModified Property

Gets or sets whether this model is considered changed from an earlier state.

Syntax

Visual Basic (Declaration) 
Public Property IsModified As Boolean
C# 
public bool IsModified {get; set;}

Property Value

true if this model has been marked as having been modified, if the UndoManager has recorded any changes, or if an undo has been performed without a corresponding redo.

Remarks

This property is set to true in OnChanged. Setting this property does not raise a Changed event.

Although you can set this property at any time, the value of IsModified will continue to be true as long as there have been changes made to the model and you are using an UndoManager. Any modifications to a model or one of its parts will result in setting IsModified to true and in adding fromport ModelChangedEventArgs to the UndoManager.CurrentEdit list, which holds all of the changes for undo/redo.

When using an UndoManager, you should be making all changes within a transaction. After finishing or rolling back a transaction, you can set IsModified to false, and then it will remain false until another change is made to the model.

When there is no UndoManager, this property is implemented as only a simple boolean state variable.

Requirements

See Also

© 2012 All Rights Reserved.