Version

CalculateTotalMarginAndPadding Method

Calculates the total padding and margin values beetween a descendant element and its ancestor
Syntax
'Declaration
 
Public Shared Function CalculateTotalMarginAndPadding( _
   ByVal ancestor As DependencyObject, _
   ByVal descendant As DependencyObject _
) As Thickness
public static Thickness CalculateTotalMarginAndPadding( 
   DependencyObject ancestor,
   DependencyObject descendant
)

Parameters

ancestor
descendant

Return Value

Returns the aggregate of all margin and padding settings
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