IXRFrameworkElement::GetMargin (Compact 2013)
3/28/2014
This method retrieves information about the width of the frame that surrounds this framework element.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetMargin(
__out XRThickness* pMargin
) = 0;
Parameters
- pMargin
[out] Pointer to an XRThickness structure that describes the width of a frame that surrounds this framework element.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The pMargin value is the space between this element and other elements that will be adjacent to it when the layout system renders the UI. Shared elements might be peer elements in the collection, or might also be a parent of this element.
If the pMargin value is greater than 0, XAML for Windows Embedded applies space outside the element layout's ActualWidth and ActualHeight dependency properties. These properties are retrieved by using IXRFrameworkElement::GetActualWidth and IXRFrameworkElement::GetActualHeight.
Margin values are additive for peer elements in a layout. For example, two horizontally-adjacent or vertically-adjacent elements, both with a margin of 30 pixels set on the adjoining edge, would have 60 total pixels of space between them.
.NET Framework Equivalent
System.Windows.FrameworkElement.Margin
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |