DependencyObject.ReadLocalValue(DependencyProperty) Method
Definition
Returns the local value of a dependency property, if a local value is set.
Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.ReadLocalValue.
public:
virtual Platform::Object ^ ReadLocalValue(DependencyProperty ^ dp) = ReadLocalValue;
IInspectable ReadLocalValue(DependencyProperty const & dp);
public object ReadLocalValue(DependencyProperty dp);
function readLocalValue(dp)
Public Function ReadLocalValue (dp As DependencyProperty) As Object
Parameters
The DependencyProperty identifier of the property for which to retrieve the local value.
Returns
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.