Skip to content

},System.String)} },--0,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 TrackingConfiguration<T> Property<TResult>(Expression<Func<T, TResult?>> propertyAccessExpression, string? name = null)
  • 2. public TrackingConfiguration<T> Property<TProperty>(Expression<Func<T, TProperty?>> propertyAccessExpression, TProperty defaultValue, string? name = null)

1. Overload

public TrackingConfiguration<T> Property<TResult>(Expression<Func<T, TResult?>> propertyAccessExpression, string? name = null)

Summary: Set up tracking for the specified property.

Type parameters

NameDescription
TResultThe type.

Parameters

NameTypeDescription
propertyAccessExpressionExpression>The property access expression.
name = nullstring?The name.

Returns: TrackingConfiguration -- Tracking Configuration.

2. Overload

public TrackingConfiguration<T> Property<TProperty>(Expression<Func<T, TProperty?>> propertyAccessExpression, TProperty defaultValue, string? name = null)

Summary: Set up tracking for the specified property.

Type parameters

NameDescription
TPropertyThe type of the property.

Parameters

NameTypeDescription
propertyAccessExpressionExpression>The expression that points to the specified property. Can navigate multiple levels.
defaultValueTPropertyIf there is no value in the store for the property, the defaultValue will be used.
name = nullstring?The name of the property in the store.

Returns: TrackingConfiguration -- Tracking Configuration.