GoXam for WPF v3
MaximumEditCount Property
Northwoods.GoXam.Model Namespace > UndoManager Class : MaximumEditCount Property
Gets or sets the maximum number of compound edits that this undo manager will remember.
Syntax
public int MaximumEditCount {get; set;}

Property Value

If the value is negative, no limit is assumed. A new value of zero is treated as if the new value were one. The initial value is 999.
Remarks

This property is useful in helping limit the memory consumption of typical application usage. But note that this only limits the number of compound edits, not the size of any individual UndoManager.CompoundEdit, which may still have an unlimited number of ModelChangedEventArgss.

Decreasing this value will not necessarily remove any existing edits if there currently exist more edits in CompoundEdits than the new value would allow.

See Also

Reference

UndoManager Class
UndoManager Members