FixedPage::SetTop Method (UIElement^, Double)
.NET Framework (current version)
Sets the distance between the top of an element and the top of its parent Canvas.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- element
-
Type:
System.Windows::UIElement^
The element on which to set the top offset.
- length
-
Type:
System::Double
The new distance between the top side of the element and the top side of its parent canvas.
The child element's top offset does not affect the size of the parent canvas.
If both a top and bottom offset have been specified on the same element, the top offset takes precedence.
When setting the top offset as a percentage, the percentage value is based on the size of the parent canvas.
.NET Framework
Available since 3.0
Available since 3.0
Show: