RelativePanel.AboveProperty Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies the RelativePanel.Above XAML attached property.
public:
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.
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.