TrackingConfiguration class¶
Defined in
Namespace: CrissCross.WPF.UI.Configuration
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Configuration.TrackingConfiguration<T>
Modifiers: public sealed
Summary¶
A TrackingConfiguration determines how a target object will be tracked.
This includes list of properties to track, persist triggers and id getter.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class TrackingConfiguration~T~
class ITrackingConfiguration {
<>
}
ITrackingConfiguration <|.. TrackingConfiguration~T~
Implements: ITrackingConfiguration
Remarks¶
Derives from TrackingConfiguration and adds a generic strongly typed API for configuring tracking.
This class does not provide any new functionality nor store any additional state.All calls are forwarded to the base class.
Properties¶
| Name | Summary |
|---|---|
| Tracker | Gets the tracker. |
| PersistTriggers | Gets the persist triggers. |
| StopTrackingTrigger | Gets or sets the stop tracking trigger. |
| TargetType | Gets the type of the target. |
| TrackedProperties | Gets the tracked properties. |
Methods¶
| Name | Summary |
|---|---|
| Track | Start tracking the target object. This will apply any previously stored data and start listening for events that indicate persisting new data is required. |
| WhenApplyingProperty | Allows value conversion and cancellation when applying a stored value to a property. |
| WhenAppliedState | Allows supplying a callback that will be called when all saved state is applied to a target object. |
| WhenPersistingProperty | Allows value conversion and cancellation when persisting a property of the target object. |
| WhenPersisted | Whens the persisted. |
| Id | Identifiers the specified identifier function. |
| CanPersist | Determines whether this instance can persist the specified can persist function. |
| PersistOn | Registers the specified event of the target object as a trigger that will cause the target's data to be persisted. |
| StopTrackingOn | Stop tracking the target when it fires the specified event. |
| Property | Set up tracking for the specified property. |
| Properties | Set up tracking for one or more properties. |
| GetStoreId | Gets the store identifier. |