Share via


RelativePanel.AboveProperty Propiedad

Definición

Identifica la propiedad adjunta XAML RelativePanel.Above .

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

Valor de propiedad

Identificador de la propiedad adjunta XAML RelativePanel.Above .

Ejemplos

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

Comentarios

Esta propiedad es solo un identificador para el sistema de propiedades y no se usa en la mayoría de los escenarios de la aplicación. En la mayoría de los casos, estableces la propiedad adjunta XAML RelativePanel.Above en XAML y no necesitarás este identificador.

Para tener acceso a la propiedad adjunta RelativePanel.Above en el código, puede usar el sistema de propiedades de dependencia, llamando a GetValue o SetValue y pasando RelativePanel.AboveProperty como identificador de propiedad de dependencia. Otra manera de obtener o establecer el valor en el código es usar GetAbove y SetAbove.

Se aplica a

Consulte también