RelativePanel
RelativePanel
RelativePanel
RelativePanel
Class
Definition
Defines an area within which you can position and align child objects in relation to each other or the parent panel.
public : class RelativePanel : Panel, IRelativePanelpublic class RelativePanel : Panel, IRelativePanelPublic Class RelativePanel Inherits Panel Implements IRelativePanel// This API is not available in Javascript.
<RelativePanel ...>
oneOrMoreUIElements
</RelativePanel>
-or-
<RelativePanel .../>
- Inheritance
-
RelativePanelRelativePanelRelativePanelRelativePanel
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited properties
Inherited events
Inherited methods
Remarks
RelativePanel is a layout container that is useful for creating UI that do not have a clear linear pattern; that is, layouts that are not fundamentally stacked, wrapped, or tabular, where you might naturally use a StackPanel or Grid.
If your UI consists of multiple nested panels, RelativePanel is a good option to consider.
Here's an example of a UI using a RelativePanel for its layout:

<RelativePanel BorderBrush="Gray" BorderThickness="10">
<Rectangle x:Name="RedRect" Fill="Red" MinHeight="100" MinWidth="100"/>
<Rectangle x:Name="BlueRect" Fill="Blue" MinHeight="100" MinWidth="100"
RelativePanel.RightOf="RedRect"/>
<!-- Width is not set on the green and yellow rectangles.
It's determined by the RelativePanel properties. -->
<Rectangle x:Name="GreenRect" Fill="Green" MinHeight="100" Margin="0,5,0,0"
RelativePanel.Below="RedRect"
RelativePanel.AlignLeftWith="RedRect"
RelativePanel.AlignRightWith="BlueRect"/>
<Rectangle Fill="Yellow" MinHeight="100"
RelativePanel.Below="GreenRect"
RelativePanel.AlignLeftWith="BlueRect"
RelativePanel.AlignRightWithPanel="True"/>
</RelativePanel>
RelativePanel, used in conjunction with AdaptiveTrigger s, can be a powerful tool to create responsive UI that scales well across different screen sizes. For more examples, see the XAML Responsive Techniques sample.
Default position
By default, any unconstrained element declared as a child of the RelativePanel is given the entire available space and positioned at the (0, 0) coordinates (upper left corner) of the panel. So, if you are positioning a second element relative to an unconstrained element, keep in mind that the second element might get pushed out of the panel.
In this example, RectA doesn't have any constraints, so it's positioned at (0,0). RectB is not shown on the screen because it is declared to be Above RectA and is therefore pushed out of the panel.
<RelativePanel>
<Rectangle Name="RectA" Fill="Red" Height="40" Width="40"/>
<Rectangle Name="RectB" Fill="Blue" Height="40" Width="40"
RelativePanel.Above="RectA"/>
</RelativePanel>
Circular dependency
A circular dependency occurs when two elements inside a RelativePanel declare relationships with each other in any direction. For example, this XAML results in a design-time exception, "RelativePanel error: Circular dependency detected. Layout could not complete."
<RelativePanel>
<Rectangle Name="RectA" Fill="Red" Height="40" Width="40"
RelativePanel.Above="RectB"/>
<Rectangle Name="RectB" Fill="Blue" Height="40" Width="40"
RelativePanel.Below="RectA"/>
</RelativePanel>
Conflicting relationships
If you set multiple relationships that target the same edge of an element, you might have conflicting relationships in your layout as a result. When this happens, the relationships are applied in the following order of priority:
- Panel alignment relationships (AlignTopWithPanel, AlignLeftWithPanel, …) are applied first.
- Sibling alignment relationships (AlignTopWith, AlignLeftWith, …) are applied second.
- Sibling positional relationships (Above, Below, RightOf, LeftOf ) are applied last.
The panel-center alignment properties (AlignVerticalCenterWith, AlignHorizontalCenterWithPanel, ...) are typically used independently of other constraints and are applied if there is no conflict.
The HorizontalAlignment and VerticalAlignment properties on UI elements are applied after relationship properties are evaluated and applied. These properties control the placement of the element within the available size for the element, if the desired size is smaller than the available size.
Border properties
RelativePanel defines border properties that let you draw a border around the RelativePanel without using an additional Border element. The properties are RelativePanel.BorderBrush, RelativePanel.BorderThickness, RelativePanel.CornerRadius, and RelativePanel.Padding.
<RelativePanel BorderBrush="Red" BorderThickness="2" CornerRadius="10" Padding="12">
<TextBox x:Name="textBox1" RelativePanel.AlignLeftWithPanel="True"/>
<Button Content="Submit" RelativePanel.Below="textBox1"/>
</RelativePanel>
Constructors
RelativePanel() RelativePanel() RelativePanel() RelativePanel()
Initializes a new instance of the RelativePanel class.
public : RelativePanel()public RelativePanel()Public Sub New()// This API is not available in Javascript.
Properties
AboveProperty AboveProperty AboveProperty AboveProperty
Identifies the RelativePanel.Above XAML attached property.
public : static DependencyProperty AboveProperty { get; }public static DependencyProperty AboveProperty { get; }Public Static ReadOnly Property AboveProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.Above XAML attached property.
Examples
// To remove a value, pass null.
Button1.SetValue(RelativePanel.AboveProperty, null);
// To set a value. (Sets Button1 above Button2.)
Button1.SetValue(RelativePanel.AboveProperty, Button2);
// To get a value. (elementName == "Button2" when set as shown previously.)
string elementName = (string)Button1.GetValue(RelativePanel.AboveProperty);
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.Above XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.Above attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AboveProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAbove and SetAbove.
- See Also
AlignBottomWithPanelProperty AlignBottomWithPanelProperty AlignBottomWithPanelProperty AlignBottomWithPanelProperty
Identifies the RelativePanel.AlignBottomWithPanel XAML attached property.
public : static DependencyProperty AlignBottomWithPanelProperty { get; }public static DependencyProperty AlignBottomWithPanelProperty { get; }Public Static ReadOnly Property AlignBottomWithPanelProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignBottomWithPanel XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWithPanel XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignBottomWithPanel attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignBottomWithPanelProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignBottomWithPanel and SetAlignBottomWithPanel.
- See Also
AlignBottomWithProperty AlignBottomWithProperty AlignBottomWithProperty AlignBottomWithProperty
Identifies the RelativePanel.AlignBottomWith XAML attached property.
public : static DependencyProperty AlignBottomWithProperty { get; }public static DependencyProperty AlignBottomWithProperty { get; }Public Static ReadOnly Property AlignBottomWithProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignBottomWith XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWith XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignBottomWith attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignBottomWithProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignBottomWith and SetAlignBottomWith.
- See Also
AlignHorizontalCenterWithPanelProperty AlignHorizontalCenterWithPanelProperty AlignHorizontalCenterWithPanelProperty AlignHorizontalCenterWithPanelProperty
Identifies the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property.
public : static DependencyProperty AlignHorizontalCenterWithPanelProperty { get; }public static DependencyProperty AlignHorizontalCenterWithPanelProperty { get; }Public Static ReadOnly Property AlignHorizontalCenterWithPanelProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignHorizontalCenterWithPanel attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignHorizontalCenterWithPanelProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignHorizontalCenterWithPanel and SetAlignHorizontalCenterWithPanel.
- See Also
AlignHorizontalCenterWithProperty AlignHorizontalCenterWithProperty AlignHorizontalCenterWithProperty AlignHorizontalCenterWithProperty
Gets the value of the RelativePanel.AlignHorizontalCenterWith XAML attached property for the target element.
public : static DependencyProperty AlignHorizontalCenterWithProperty { get; }public static DependencyProperty AlignHorizontalCenterWithProperty { get; }Public Static ReadOnly Property AlignHorizontalCenterWithProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignHorizontalCenterWith XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignHorizontalCenterWith XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignHorizontalCenterWith attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignHorizontalCenterWithProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignHorizontalCenterWith and SetAlignHorizontalCenterWith.
- See Also
AlignLeftWithPanelProperty AlignLeftWithPanelProperty AlignLeftWithPanelProperty AlignLeftWithPanelProperty
Identifies the RelativePanel.AlignLeftWithPanel XAML attached property.
public : static DependencyProperty AlignLeftWithPanelProperty { get; }public static DependencyProperty AlignLeftWithPanelProperty { get; }Public Static ReadOnly Property AlignLeftWithPanelProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignLeftWithPanel XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignLeftWithPanel XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignLeftWithPanel attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignLeftWithPanelProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignLeftWithPanel and SetAlignLeftWithPanel.
- See Also
AlignLeftWithProperty AlignLeftWithProperty AlignLeftWithProperty AlignLeftWithProperty
Identifies the RelativePanel.AlignLeftWith XAML attached property.
public : static DependencyProperty AlignLeftWithProperty { get; }public static DependencyProperty AlignLeftWithProperty { get; }Public Static ReadOnly Property AlignLeftWithProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignLeftWith XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWith XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignLeftWith attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignLeftWithProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignLeftWith and SetAlignLeftWith.
- See Also
AlignRightWithPanelProperty AlignRightWithPanelProperty AlignRightWithPanelProperty AlignRightWithPanelProperty
Identifies the RelativePanel.AlignRightWithPanel XAML attached property.
public : static DependencyProperty AlignRightWithPanelProperty { get; }public static DependencyProperty AlignRightWithPanelProperty { get; }Public Static ReadOnly Property AlignRightWithPanelProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignRightWithPanel XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignRightWithPanel XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignRightWithPanel attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignRightWithPanelProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignRightWithPanel and SetAlignRightWithPanel.
- See Also
AlignRightWithProperty AlignRightWithProperty AlignRightWithProperty AlignRightWithProperty
Identifies the RelativePanel.AlignRightWith XAML attached property.
public : static DependencyProperty AlignRightWithProperty { get; }public static DependencyProperty AlignRightWithProperty { get; }Public Static ReadOnly Property AlignRightWithProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignRightWith XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignRightWith XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignRightWith attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignRightWithProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignRightWith and SetAlignRightWith.
- See Also
AlignTopWithPanelProperty AlignTopWithPanelProperty AlignTopWithPanelProperty AlignTopWithPanelProperty
Identifies the RelativePanel.AlignTopWithPanel XAML attached property.
public : static DependencyProperty AlignTopWithPanelProperty { get; }public static DependencyProperty AlignTopWithPanelProperty { get; }Public Static ReadOnly Property AlignTopWithPanelProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignTopWithPanel XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignTopWithPanel XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.Above attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignTopWithPanelProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignTopWithPanel and SetAlignTopWithPanel.
- See Also
AlignTopWithProperty AlignTopWithProperty AlignTopWithProperty AlignTopWithProperty
Identifies the RelativePanel.AlignTopWith XAML attached property.
public : static DependencyProperty AlignTopWithProperty { get; }public static DependencyProperty AlignTopWithProperty { get; }Public Static ReadOnly Property AlignTopWithProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignTopWith XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignTopWith XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignTopWith attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignTopWithProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignTopWith and SetAlignTopWith.
- See Also
AlignVerticalCenterWithPanelProperty AlignVerticalCenterWithPanelProperty AlignVerticalCenterWithPanelProperty AlignVerticalCenterWithPanelProperty
Identifies the RelativePanel.AlignVerticalCenterWithPanel XAML attached property.
public : static DependencyProperty AlignVerticalCenterWithPanelProperty { get; }public static DependencyProperty AlignVerticalCenterWithPanelProperty { get; }Public Static ReadOnly Property AlignVerticalCenterWithPanelProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignVerticalCenterWithPanel XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignVerticalCenterWithPanel XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignVerticalCenterWithPanel attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignVerticalCenterWithPanelProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignVerticalCenterWithPanel and SetAlignVerticalCenterWithPanel.
- See Also
AlignVerticalCenterWithProperty AlignVerticalCenterWithProperty AlignVerticalCenterWithProperty AlignVerticalCenterWithProperty
Gets the value of the RelativePanel.AlignVerticalCenterWith XAML attached property for the target element.
public : static DependencyProperty AlignVerticalCenterWithProperty { get; }public static DependencyProperty AlignVerticalCenterWithProperty { get; }Public Static ReadOnly Property AlignVerticalCenterWithProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.AlignVerticalCenterWith XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignVerticalCenterWith XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.AlignVerticalCenterWith attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.AlignVerticalCenterWithProperty as the dependency property identifier. Another way to get or set the value in code is to use GetAlignVerticalCenterWith and SetAlignVerticalCenterWith.
- See Also
BelowProperty BelowProperty BelowProperty BelowProperty
Identifies the RelativePanel.Below XAML attached property.
public : static DependencyProperty BelowProperty { get; }public static DependencyProperty BelowProperty { get; }Public Static ReadOnly Property BelowProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.Below XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.Below XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.Below attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.BelowProperty as the dependency property identifier. Another way to get or set the value in code is to use GetBelow and SetBelow.
- See Also
BorderBrush BorderBrush BorderBrush BorderBrush
Gets or sets a brush that describes the border fill of the panel.
public : Brush BorderBrush { get; set; }public Brush BorderBrush { get; set; }Public ReadWrite Property BorderBrush As Brush// This API is not available in Javascript.
<RelativePanel BorderBrush="{StaticResource resourceName}"/>
The brush that is used to fill the panel's border. The default is null, (a null brush) which is evaluated as Transparent for rendering.
Remarks
The BorderThickness value must be greater than 0 in order to see the BorderBrush value take effect.
BorderBrushProperty BorderBrushProperty BorderBrushProperty BorderBrushProperty
Identifies the BorderBrush dependency property.
public : static DependencyProperty BorderBrushProperty { get; }public static DependencyProperty BorderBrushProperty { get; }Public Static ReadOnly Property BorderBrushProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the BorderBrush dependency property.
- See Also
BorderThickness BorderThickness BorderThickness BorderThickness
Gets or sets the border thickness of the panel.
public : Thickness BorderThickness { get; set; }public Thickness BorderThickness { get; set; }Public ReadWrite Property BorderThickness As Thickness// This API is not available in Javascript.
<RelativePanel BorderThickness="uniform"/>
- or -
<RelativePanel BorderThickness="left&right,top&bottom"/>
- or -
<RelativePanel BorderThickness="left,top,right,bottom"/>
BorderThicknessProperty BorderThicknessProperty BorderThicknessProperty BorderThicknessProperty
Identifies the BorderThickness dependency property.
public : static DependencyProperty BorderThicknessProperty { get; }public static DependencyProperty BorderThicknessProperty { get; }Public Static ReadOnly Property BorderThicknessProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the BorderThickness dependency property.
- See Also
CornerRadius CornerRadius CornerRadius CornerRadius
Gets or sets the radius for the corners of the panel's border.
public : CornerRadius CornerRadius { get; set; }public CornerRadius CornerRadius { get; set; }Public ReadWrite Property CornerRadius As CornerRadius// This API is not available in Javascript.
<RelativePanel CornerRadius="uniformRadius"/>
- or -
<RelativePanel CornerRadius="topLeft,topRight,bottomRight,bottomLeft"/>
The degree to which the corners are rounded, expressed as values of the CornerRadius structure.
Remarks
Member components of a CornerRadius value cannot be negative.
CornerRadiusProperty CornerRadiusProperty CornerRadiusProperty CornerRadiusProperty
Identifies the CornerRadius dependency property.
public : static DependencyProperty CornerRadiusProperty { get; }public static DependencyProperty CornerRadiusProperty { get; }Public Static ReadOnly Property CornerRadiusProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the CornerRadius dependency property.
- See Also
LeftOfProperty LeftOfProperty LeftOfProperty LeftOfProperty
Identifies the RelativePanel.LeftOf XAML attached property.
public : static DependencyProperty LeftOfProperty { get; }public static DependencyProperty LeftOfProperty { get; }Public Static ReadOnly Property LeftOfProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.LeftOf XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.LeftOf XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.LeftOf attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.LeftOfProperty as the dependency property identifier. Another way to get or set the value in code is to use GetLeftOf and SetLeftOf.
- See Also
Padding Padding Padding Padding
Gets or sets the distance between the border and its child object.
public : Thickness Padding { get; set; }public Thickness Padding { get; set; }Public ReadWrite Property Padding As Thickness// This API is not available in Javascript.
The dimensions of the space between the border and its child as a Thickness value. Thickness is a structure that stores dimension values using pixel measures.
Remarks
A related property is Margin (a property of FrameworkElement ). For more info about the relationship between margin and padding, see Alignment, margin, and padding or Define layouts with XAML.
PaddingProperty PaddingProperty PaddingProperty PaddingProperty
Identifies the Padding dependency property.
public : static DependencyProperty PaddingProperty { get; }public static DependencyProperty PaddingProperty { get; }Public Static ReadOnly Property PaddingProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Padding dependency property.
- See Also
RightOfProperty RightOfProperty RightOfProperty RightOfProperty
Identifies the RelativePanel.RightOf XAML attached property.
public : static DependencyProperty RightOfProperty { get; }public static DependencyProperty RightOfProperty { get; }Public Static ReadOnly Property RightOfProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the RelativePanel.RightOf XAML attached property.
Remarks
This property is only an identifier for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.RightOf XAML attached property in XAML and won't need this identifier.
To access the RelativePanel.RightOf attached property in code, you can use the dependency property system, calling either GetValue or SetValue and passing RelativePanel.RightOfProperty as the dependency property identifier. Another way to get or set the value in code is to use GetRightOf and SetRightOf.
- See Also
Methods
GetAbove(UIElement) GetAbove(UIElement) GetAbove(UIElement) GetAbove(UIElement)
Gets the value of the RelativePanel.Above XAML attached property for the target element.
public : static PlatForm::Object GetAbove(UIElement element)public static object GetAbove(UIElement element)Public Static Function GetAbove(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.Above XAML attached property value of the specified object. (The element to position this element above.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.Above XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.Above attached property.
- See Also
GetAlignBottomWith(UIElement) GetAlignBottomWith(UIElement) GetAlignBottomWith(UIElement) GetAlignBottomWith(UIElement)
Gets the value of the RelativePanel.AlignBottomWith XAML attached property for the target element.
public : static PlatForm::Object GetAlignBottomWith(UIElement element)public static object GetAlignBottomWith(UIElement element)Public Static Function GetAlignBottomWith(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.AlignBottomWith XAML attached property value of the specified object. (The element to align this element's bottom edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignBottomWith attached property.
- See Also
GetAlignBottomWithPanel(UIElement) GetAlignBottomWithPanel(UIElement) GetAlignBottomWithPanel(UIElement) GetAlignBottomWithPanel(UIElement)
Gets the value of the RelativePanel.AlignBottomWithPanel XAML attached property for the target element.
public : static PlatForm::Boolean GetAlignBottomWithPanel(UIElement element)public static bool GetAlignBottomWithPanel(UIElement element)Public Static Function GetAlignBottomWithPanel(element As UIElement) As bool// This API is not available in Javascript.
The RelativePanel.AlignBottomWithPanel XAML attached property value of the specified object. (true to align this element's bottom edge with the panel's bottom edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignBottomWithPanel attached property.
- See Also
GetAlignHorizontalCenterWith(UIElement) GetAlignHorizontalCenterWith(UIElement) GetAlignHorizontalCenterWith(UIElement) GetAlignHorizontalCenterWith(UIElement)
Gets the value of the RelativePanel.AlignHorizontalCenterWith XAML attached property for the target element.
public : static PlatForm::Object GetAlignHorizontalCenterWith(UIElement element)public static object GetAlignHorizontalCenterWith(UIElement element)Public Static Function GetAlignHorizontalCenterWith(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.AlignHorizontalCenterWith XAML attached property value of the specified object. (The element to align this element's horizontal center with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignHorizontalCenterWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignHorizontalCenterWith attached property.
- See Also
GetAlignHorizontalCenterWithPanel(UIElement) GetAlignHorizontalCenterWithPanel(UIElement) GetAlignHorizontalCenterWithPanel(UIElement) GetAlignHorizontalCenterWithPanel(UIElement)
Gets the value of the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property for the target element.
public : static PlatForm::Boolean GetAlignHorizontalCenterWithPanel(UIElement element)public static bool GetAlignHorizontalCenterWithPanel(UIElement element)Public Static Function GetAlignHorizontalCenterWithPanel(element As UIElement) As bool// This API is not available in Javascript.
The RelativePanel.AlignHorizontalCenterWithPanel XAML attached property value of the specified object. (true to horizontally center this element in the panel; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignHorizontalCenterWithPanel attached property.
- See Also
GetAlignLeftWith(UIElement) GetAlignLeftWith(UIElement) GetAlignLeftWith(UIElement) GetAlignLeftWith(UIElement)
Gets the value of the RelativePanel.AlignLeftWith XAML attached property for the target element.
public : static PlatForm::Object GetAlignLeftWith(UIElement element)public static object GetAlignLeftWith(UIElement element)Public Static Function GetAlignLeftWith(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.AlignLeftWith XAML attached property value of the specified object. (The element to align this element's left edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignLeftWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignLeftWith attached property.
- See Also
GetAlignLeftWithPanel(UIElement) GetAlignLeftWithPanel(UIElement) GetAlignLeftWithPanel(UIElement) GetAlignLeftWithPanel(UIElement)
Gets the value of the RelativePanel.AlignLeftWithPanel XAML attached property for the target element.
public : static PlatForm::Boolean GetAlignLeftWithPanel(UIElement element)public static bool GetAlignLeftWithPanel(UIElement element)Public Static Function GetAlignLeftWithPanel(element As UIElement) As bool// This API is not available in Javascript.
The RelativePanel.AlignLeftWithPanel XAML attached property value of the specified object. (true to align this element's left edge with the panel's left edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignLeftWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignLeftWithPanel attached property.
- See Also
GetAlignRightWith(UIElement) GetAlignRightWith(UIElement) GetAlignRightWith(UIElement) GetAlignRightWith(UIElement)
Gets the value of the RelativePanel.AlignRightWith XAML attached property for the target element.
public : static PlatForm::Object GetAlignRightWith(UIElement element)public static object GetAlignRightWith(UIElement element)Public Static Function GetAlignRightWith(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.AlignRightWith XAML attached property value of the specified object. (The element to align this element's right edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignRightWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignRightWith attached property.
- See Also
GetAlignRightWithPanel(UIElement) GetAlignRightWithPanel(UIElement) GetAlignRightWithPanel(UIElement) GetAlignRightWithPanel(UIElement)
Gets the value of the RelativePanel.AlignRightWithPanel XAML attached property for the target element.
public : static PlatForm::Boolean GetAlignRightWithPanel(UIElement element)public static bool GetAlignRightWithPanel(UIElement element)Public Static Function GetAlignRightWithPanel(element As UIElement) As bool// This API is not available in Javascript.
The RelativePanel.AlignRightWithPanel XAML attached property value of the specified object. (true to align this element's right edge with the panel's right edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignRightWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignRightWithPanel attached property.
- See Also
GetAlignTopWith(UIElement) GetAlignTopWith(UIElement) GetAlignTopWith(UIElement) GetAlignTopWith(UIElement)
Gets the value of the RelativePanel.AlignTopWith XAML attached property for the target element.
public : static PlatForm::Object GetAlignTopWith(UIElement element)public static object GetAlignTopWith(UIElement element)Public Static Function GetAlignTopWith(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.AlignTopWith XAML attached property value of the specified object. (The element to align this element's top edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignTopWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignTopWith attached property.
- See Also
GetAlignTopWithPanel(UIElement) GetAlignTopWithPanel(UIElement) GetAlignTopWithPanel(UIElement) GetAlignTopWithPanel(UIElement)
Gets the value of the RelativePanel.AlignTopWithPanel XAML attached property for the target element.
public : static PlatForm::Boolean GetAlignTopWithPanel(UIElement element)public static bool GetAlignTopWithPanel(UIElement element)Public Static Function GetAlignTopWithPanel(element As UIElement) As bool// This API is not available in Javascript.
The RelativePanel.AlignTopWithPanel XAML attached property value of the specified object. (true to align this element's top edge with the panel's top edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignTopWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignTopWithPanel attached property.
- See Also
GetAlignVerticalCenterWith(UIElement) GetAlignVerticalCenterWith(UIElement) GetAlignVerticalCenterWith(UIElement) GetAlignVerticalCenterWith(UIElement)
Gets the value of the RelativePanel.AlignVerticalCenterWith XAML attached property for the target element.
public : static PlatForm::Object GetAlignVerticalCenterWith(UIElement element)public static object GetAlignVerticalCenterWith(UIElement element)Public Static Function GetAlignVerticalCenterWith(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.AlignVerticalCenterWith XAML attached property value of the specified object. (The element to align this element's vertical center with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignVerticalCenterWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignVerticalCenterWith attached property.
- See Also
GetAlignVerticalCenterWithPanel(UIElement) GetAlignVerticalCenterWithPanel(UIElement) GetAlignVerticalCenterWithPanel(UIElement) GetAlignVerticalCenterWithPanel(UIElement)
Gets the value of the RelativePanel.AlignVerticalCenterWithPanel XAML attached property for the target element.
public : static PlatForm::Boolean GetAlignVerticalCenterWithPanel(UIElement element)public static bool GetAlignVerticalCenterWithPanel(UIElement element)Public Static Function GetAlignVerticalCenterWithPanel(element As UIElement) As bool// This API is not available in Javascript.
The RelativePanel.AlignVerticalCenterWithPanel XAML attached property value of the specified object. (true to vertically center this element in the panel; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignVerticalCenterWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignVerticalCenterWithPanel attached property.
- See Also
GetBelow(UIElement) GetBelow(UIElement) GetBelow(UIElement) GetBelow(UIElement)
Gets the value of the RelativePanel.Below XAML attached property for the target element.
public : static PlatForm::Object GetBelow(UIElement element)public static object GetBelow(UIElement element)Public Static Function GetBelow(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.Below XAML attached property value of the specified object. (The element to position this element below.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.Below XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.Below attached property.
- See Also
GetLeftOf(UIElement) GetLeftOf(UIElement) GetLeftOf(UIElement) GetLeftOf(UIElement)
Gets the value of the RelativePanel.LeftOf XAML attached property for the target element.
public : static PlatForm::Object GetLeftOf(UIElement element)public static object GetLeftOf(UIElement element)Public Static Function GetLeftOf(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.LeftOf XAML attached property value of the specified object. (The element to position this element to the left of.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.LeftOf XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.LeftOf attached property.
- See Also
GetRightOf(UIElement) GetRightOf(UIElement) GetRightOf(UIElement) GetRightOf(UIElement)
Gets the value of the RelativePanel.RightOf XAML attached property for the target element.
public : static PlatForm::Object GetRightOf(UIElement element)public static object GetRightOf(UIElement element)Public Static Function GetRightOf(element As UIElement) As object// This API is not available in Javascript.
The RelativePanel.RightOf XAML attached property value of the specified object. (The element to position this element to the right of.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.RightOf XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.RightOf attached property.
- See Also
SetAbove(UIElement, Object) SetAbove(UIElement, Object) SetAbove(UIElement, Object) SetAbove(UIElement, Object)
Sets the value of the RelativePanel.Above XAML attached property for a target element.
public : static void SetAbove(UIElement element, PlatForm::Object value)public static void SetAbove(UIElement element, Object value)Public Static Function SetAbove(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to position this element above.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.Above XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.Above attached property.
- See Also
SetAlignBottomWith(UIElement, Object) SetAlignBottomWith(UIElement, Object) SetAlignBottomWith(UIElement, Object) SetAlignBottomWith(UIElement, Object)
Sets the value of the RelativePanel.AlignBottomWith XAML attached property for the target element.
public : static void SetAlignBottomWith(UIElement element, PlatForm::Object value)public static void SetAlignBottomWith(UIElement element, Object value)Public Static Function SetAlignBottomWith(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to align this element's bottom edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignBottomWith attached property.
- See Also
SetAlignBottomWithPanel(UIElement, Boolean) SetAlignBottomWithPanel(UIElement, Boolean) SetAlignBottomWithPanel(UIElement, Boolean) SetAlignBottomWithPanel(UIElement, Boolean)
Sets the value of the RelativePanel.AlignBottomWithPanel XAML attached property for a target element.
public : static void SetAlignBottomWithPanel(UIElement element, bool value)public static void SetAlignBottomWithPanel(UIElement element, Boolean value)Public Static Function SetAlignBottomWithPanel(element As UIElement, value As Boolean) As void// This API is not available in Javascript.
- value
- bool Boolean Boolean Boolean
The value to set. (true to align this element's bottom edge with the panel's bottom edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignBottomWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignBottomWithPanel attached property.
- See Also
SetAlignHorizontalCenterWith(UIElement, Object) SetAlignHorizontalCenterWith(UIElement, Object) SetAlignHorizontalCenterWith(UIElement, Object) SetAlignHorizontalCenterWith(UIElement, Object)
Sets the value of the RelativePanel.AlignHorizontalCenterWith XAML attached property for a target element.
public : static void SetAlignHorizontalCenterWith(UIElement element, PlatForm::Object value)public static void SetAlignHorizontalCenterWith(UIElement element, Object value)Public Static Function SetAlignHorizontalCenterWith(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to align this element's horizontal center with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignHorizontalCenterWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignHorizontalCenterWith attached property.
- See Also
SetAlignHorizontalCenterWithPanel(UIElement, Boolean) SetAlignHorizontalCenterWithPanel(UIElement, Boolean) SetAlignHorizontalCenterWithPanel(UIElement, Boolean) SetAlignHorizontalCenterWithPanel(UIElement, Boolean)
Sets the value of the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property for a target element.
public : static void SetAlignHorizontalCenterWithPanel(UIElement element, bool value)public static void SetAlignHorizontalCenterWithPanel(UIElement element, Boolean value)Public Static Function SetAlignHorizontalCenterWithPanel(element As UIElement, value As Boolean) As void// This API is not available in Javascript.
- value
- bool Boolean Boolean Boolean
The value to set. (true to horizontally center this element in the panel; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignHorizontalCenterWithPanel attached property.
- See Also
SetAlignLeftWith(UIElement, Object) SetAlignLeftWith(UIElement, Object) SetAlignLeftWith(UIElement, Object) SetAlignLeftWith(UIElement, Object)
Sets the value of the RelativePanel.AlignLeftWith XAML attached property for a target element.
public : static void SetAlignLeftWith(UIElement element, PlatForm::Object value)public static void SetAlignLeftWith(UIElement element, Object value)Public Static Function SetAlignLeftWith(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to align this element's left edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignLeftWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignLeftWith attached property.
- See Also
SetAlignLeftWithPanel(UIElement, Boolean) SetAlignLeftWithPanel(UIElement, Boolean) SetAlignLeftWithPanel(UIElement, Boolean) SetAlignLeftWithPanel(UIElement, Boolean)
Sets the value of the RelativePanel.AlignLeftWithPanel XAML attached property for a target element.
public : static void SetAlignLeftWithPanel(UIElement element, bool value)public static void SetAlignLeftWithPanel(UIElement element, Boolean value)Public Static Function SetAlignLeftWithPanel(element As UIElement, value As Boolean) As void// This API is not available in Javascript.
- value
- bool Boolean Boolean Boolean
The value to set. (true to align this element's left edge with the panel's left edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignLeftWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignLeftWithPanel attached property.
- See Also
SetAlignRightWith(UIElement, Object) SetAlignRightWith(UIElement, Object) SetAlignRightWith(UIElement, Object) SetAlignRightWith(UIElement, Object)
Sets the value of the RelativePanel.AlignRightWith XAML attached property for a target element.
public : static void SetAlignRightWith(UIElement element, PlatForm::Object value)public static void SetAlignRightWith(UIElement element, Object value)Public Static Function SetAlignRightWith(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to align this element's right edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignRightWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignRightWith attached property.
- See Also
SetAlignRightWithPanel(UIElement, Boolean) SetAlignRightWithPanel(UIElement, Boolean) SetAlignRightWithPanel(UIElement, Boolean) SetAlignRightWithPanel(UIElement, Boolean)
Sets the value of the RelativePanel.AlignRightWithPanel XAML attached property for a target element.
public : static void SetAlignRightWithPanel(UIElement element, bool value)public static void SetAlignRightWithPanel(UIElement element, Boolean value)Public Static Function SetAlignRightWithPanel(element As UIElement, value As Boolean) As void// This API is not available in Javascript.
- value
- bool Boolean Boolean Boolean
The value to set. (true to align this element's right edge with the panel's right edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignRightWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignRightWithPanel attached property.
- See Also
SetAlignTopWith(UIElement, Object) SetAlignTopWith(UIElement, Object) SetAlignTopWith(UIElement, Object) SetAlignTopWith(UIElement, Object)
Sets the value of the RelativePanel.AlignTopWith XAML attached property for a target element.
public : static void SetAlignTopWith(UIElement element, PlatForm::Object value)public static void SetAlignTopWith(UIElement element, Object value)Public Static Function SetAlignTopWith(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to align this element's top edge with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignTopWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignTopWith attached property.
- See Also
SetAlignTopWithPanel(UIElement, Boolean) SetAlignTopWithPanel(UIElement, Boolean) SetAlignTopWithPanel(UIElement, Boolean) SetAlignTopWithPanel(UIElement, Boolean)
Sets the value of the RelativePanel.AlignTopWithPanel XAML attached property for a target element.
public : static void SetAlignTopWithPanel(UIElement element, bool value)public static void SetAlignTopWithPanel(UIElement element, Boolean value)Public Static Function SetAlignTopWithPanel(element As UIElement, value As Boolean) As void// This API is not available in Javascript.
- value
- bool Boolean Boolean Boolean
The value to set. (true to align this element's top edge with the panel's top edge; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignTopWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignTopWithPanel attached property.
- See Also
SetAlignVerticalCenterWith(UIElement, Object) SetAlignVerticalCenterWith(UIElement, Object) SetAlignVerticalCenterWith(UIElement, Object) SetAlignVerticalCenterWith(UIElement, Object)
Sets the value of the RelativePanel.AlignVerticalCenterWith XAML attached property for a target element.
public : static void SetAlignVerticalCenterWith(UIElement element, PlatForm::Object value)public static void SetAlignVerticalCenterWith(UIElement element, Object value)Public Static Function SetAlignVerticalCenterWith(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to align this element's horizontal center with.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignVerticalCenterWith XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignVerticalCenterWith attached property.
- See Also
SetAlignVerticalCenterWithPanel(UIElement, Boolean) SetAlignVerticalCenterWithPanel(UIElement, Boolean) SetAlignVerticalCenterWithPanel(UIElement, Boolean) SetAlignVerticalCenterWithPanel(UIElement, Boolean)
Sets the value of the RelativePanel.AlignVerticalCenterWithPanel XAML attached property for a target element.
public : static void SetAlignVerticalCenterWithPanel(UIElement element, bool value)public static void SetAlignVerticalCenterWithPanel(UIElement element, Boolean value)Public Static Function SetAlignVerticalCenterWithPanel(element As UIElement, value As Boolean) As void// This API is not available in Javascript.
- value
- bool Boolean Boolean Boolean
The value to set. (true to vertically center this element in the panel; otherwise, false.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.AlignVerticalCenterWithPanel XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.AlignVerticalCenterWithPanel attached property.
- See Also
SetBelow(UIElement, Object) SetBelow(UIElement, Object) SetBelow(UIElement, Object) SetBelow(UIElement, Object)
Sets the value of the RelativePanel.Below XAML attached property for a target element.
public : static void SetBelow(UIElement element, PlatForm::Object value)public static void SetBelow(UIElement element, Object value)Public Static Function SetBelow(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to position this element below.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.Below XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.Below attached property.
- See Also
SetLeftOf(UIElement, Object) SetLeftOf(UIElement, Object) SetLeftOf(UIElement, Object) SetLeftOf(UIElement, Object)
Sets the value of the RelativePanel.LeftOf XAML attached property for a target element.
public : static void SetLeftOf(UIElement element, PlatForm::Object value)public static void SetLeftOf(UIElement element, Object value)Public Static Function SetLeftOf(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to position this element to the left of.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.LeftOf XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.LeftOf attached property.
- See Also
SetRightOf(UIElement, Object) SetRightOf(UIElement, Object) SetRightOf(UIElement, Object) SetRightOf(UIElement, Object)
Sets the value of the RelativePanel.RightOf XAML attached property for a target element.
public : static void SetRightOf(UIElement element, PlatForm::Object value)public static void SetRightOf(UIElement element, Object value)Public Static Function SetRightOf(element As UIElement, value As Object) As void// This API is not available in Javascript.
- value
- PlatForm::Object Object Object Object
The value to set. (The element to position this element to the right of.)
Remarks
This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the RelativePanel.RightOf XAML attached property in XAML and won't need this method. For more info, see the RelativePanel.RightOf attached property.
- See Also