DependencyObject.ReadLocalValue(DependencyProperty) Method

Definition

Returns the local value of a dependency property, if a local value is set.

C#
public object ReadLocalValue(DependencyProperty dp);

Parameters

dp
DependencyProperty

The DependencyProperty identifier of the property for which to retrieve the local value.

Returns

Object

Returns the local value, or returns the sentinel value UnsetValue if no local value is set.

Remarks

The local value is not always the effective value. For more info, see Dependency properties overview.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also