LocalValueEntry Structure
Represents a property identifier and the property value for a locally set dependency property.
Assembly: WindowsBase (in WindowsBase.dll)
Instances of this class are returned when getting the value of the Current property of a LocalValueEnumerator. All LocalValueEntry properties are read-only.
This class has no public constructor. In order to obtain instances of this class you must call GetLocalValueEnumerator, and then get the value of Current from the returned LocalValueEnumerator.
The following example iterates locally set values of a DependencyObject and queries LocalValueEntry properties.
Private Sub RestoreDefaultProperties(ByVal sender As Object, ByVal e As RoutedEventArgs) Dim uic As UIElementCollection = Sandbox.Children For Each uie As Shape In uic Dim locallySetProperties As LocalValueEnumerator = uie.GetLocalValueEnumerator() While locallySetProperties.MoveNext() Dim propertyToClear As DependencyProperty = locallySetProperties.Current.Property If Not propertyToClear.ReadOnly Then uie.ClearValue(propertyToClear) End If End While Next End Sub
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.