},System.String)} },--1,System.String)}
TrackingConfiguration.Property(Expression>, string?) method¶
Defined in
Type: TrackingConfiguration
Namespace: CrissCross.WPF.UI.Configuration
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public ITrackingConfiguration Property<T, TProperty>(Expression<Func<T, TProperty?>> propertyAccessExpression, string? name = null) - 2.
public ITrackingConfiguration Property<T, TProperty>(Expression<Func<T, TProperty?>> propertyAccessExpression, TProperty defaultValue, string? name = null)
1. Overload¶
public ITrackingConfiguration Property<T, TProperty>(Expression<Func<T, TProperty?>> propertyAccessExpression, string? name = null)
Summary: Set up tracking for the specified property. Allows supplying a name for the property. This overload is used when the target object has a list of child objects whose properties it wishes to track. Each child object's properties can be tracked with a different name, e.g. by including the index in the name.
Type parameters
| Name | Description |
|---|---|
T | Type of target object. |
TProperty | Type of property. |
Parameters
| Name | Type | Description |
|---|---|---|
propertyAccessExpression | Expression | The expression that points to the property to track. Supports accessing properties of nested objects. |
name = null | string? | Name to use when tracking the property's data. |
Returns: ITrackingConfiguration -- ITracking Configuration.
2. Overload¶
public ITrackingConfiguration Property<T, TProperty>(Expression<Func<T, TProperty?>> propertyAccessExpression, TProperty defaultValue, string? name = null)
Summary: Set up tracking for the specified property. Allows supplying a name for the property. This overload is used when the target object has a list of child objects whose properties it wishes to track. Each child object's properties can be tracked with a different name, e.g. by including the index in the name.
Type parameters
| Name | Description |
|---|---|
T | Type of target object. |
TProperty | Type of property. |
Parameters
| Name | Type | Description |
|---|---|---|
propertyAccessExpression | Expression | The expression that points to the property to track. Supports accessing properties of nested objects. |
defaultValue | TProperty | If there is no value in the store for the property, the defaultValue will be used. |
name = null | string? | Name to use when tracking the property's data. |
Returns: ITrackingConfiguration -- ITrackingConfiguration.