Tracker class¶
Defined in
Namespace: CrissCross.WPF.UI
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Tracker
Modifiers: public
Summary¶
A StateTracker is an object responsible for tracking the specified properties of the specified target objects.
Tracking means persisting the values of the specified object properties, and restoring this data when appropriate.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Remarks¶
Initializes a new instance of the Tracker class. Creates a new instance of the state tracker with the specified storage.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | A StateTracker is an object responsible for tracking the specified properties of the specified target objects. Tracking means persisting the values of the specified object properties,... |
Properties¶
| Name | Summary |
|---|---|
| Store | Gets or sets the object that is used to store and retrieve tracked data. |
Methods¶
| Name | Summary |
|---|---|
| Track | Track a target object. This will apply any previously stored state to the target and start listening for events that indicate persisting new data is required. |
| Apply | Apply any previously stored data to the target object. |
| ApplyDefaults | Apply specified defaults to the tracked properties of the target object. |
| Forget | Forget any saved state for the object with the specified id. |
| ForgetAll | Forget all saved state. |
| Configure | Gets or creates a tracking configuration for the target object. |
| StopTracking | Stop tracking the target object. This prevents the persisting the target's properties when PersistAll is called on the tracker. It is used to prevent saving invalid data... |
| Persist | Persists the tracked properties of the target object. |
| PersistAll | Runs a global persist for all objects that are still alive and tracked. Waits for finalizers to complete first. |