RelativePanel.AboveProperty Proprietà

Definizione

Identifica la proprietà associata RelativePanel.Above XAML.

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

Valore della proprietà

Identificatore della proprietà associata RelativePanel.Above XAML.

Esempio

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

Commenti

Questa proprietà è solo un identificatore per il sistema di proprietà e non viene usata nella maggior parte degli scenari di app. Nella maggior parte dei casi imposti la proprietà associata RelativePanel.Above XAML in XAML e non ti servirà questo identificatore.

Per accedere alla proprietà associata RelativePanel.Above nel codice, puoi usare il sistema di proprietà di dipendenza, chiamando GetValue o SetValue e passando RelativePanel.AboveProperty come identificatore della proprietà di dipendenza. Un altro modo per ottenere o impostare il valore nel codice consiste nell'usare GetAbove e SetAbove.

Si applica a

Vedi anche