Skip to content

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

NameSummary
.ctorA 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

NameSummary
StoreGets or sets the object that is used to store and retrieve tracked data.

Methods

NameSummary
TrackTrack 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.
ApplyApply any previously stored data to the target object.
ApplyDefaultsApply specified defaults to the tracked properties of the target object.
ForgetForget any saved state for the object with the specified id.
ForgetAllForget all saved state.
ConfigureGets or creates a tracking configuration for the target object.
StopTrackingStop 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...
PersistPersists the tracked properties of the target object.
PersistAllRuns a global persist for all objects that are still alive and tracked. Waits for finalizers to complete first.
Inherited members