Version

GetPropertyValueFromStyle Method

Returns a property value from a style
Syntax
'Declaration
 
Public Shared Function GetPropertyValueFromStyle( _
   ByVal style As Style, _
   ByVal property As DependencyProperty, _
   ByVal walkUpBasedOnChain As Boolean, _
   ByVal returnBindingAsBinding As Boolean _
) As Object
public static object GetPropertyValueFromStyle( 
   Style style,
   DependencyProperty property,
   bool walkUpBasedOnChain,
   bool returnBindingAsBinding
)

Parameters

style
The source style
property
The property to look for.
walkUpBasedOnChain
True to search BasedOn styles.
returnBindingAsBinding
True to possibly return a binding object.

Return Value

The value that was set or null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also