RelativePanel.AboveProperty Property


Identifies the RelativePanel.Above XAML attached property.

 static property DependencyProperty ^ AboveProperty { DependencyProperty ^ get(); };
static DependencyProperty AboveProperty();
public static DependencyProperty AboveProperty { get; }
var dependencyProperty = RelativePanel.aboveProperty;
Public Shared ReadOnly Property AboveProperty As DependencyProperty

Property Value


The identifier for the RelativePanel.Above XAML attached property.


// 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);


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.

Applies to

See also