Version

CalculateResolvedValue(ResolutionOrder,Object,Object,Object,Object) Method

Helper method to calculate a resolved value based on a specified resolution order.
Syntax
'Declaration
 
Public Shared Function CalculateResolvedValue( _
   ByVal order As ResolutionOrder, _
   ByVal styleValue As Object, _
   ByVal controlValue As Object, _
   ByVal defaultValue As Object, _
   ByVal defaultResolvedValue As Object _
) As Object
public static object CalculateResolvedValue( 
   ResolutionOrder order,
   object styleValue,
   object controlValue,
   object defaultValue,
   object defaultResolvedValue
)

Parameters

order
Resolution order used to determine the precedence of the values
styleValue
Property value from the application style
controlValue
Property value from the control
defaultValue
Value to compare against the control and style value to determine if they are set to their default value.
defaultResolvedValue
The value to return if all the values are set to the defaultValue.

Return Value

The resolved value.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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