RelativePanel.AlignVerticalCenterWithProperty 屬性

定義

取得目標專案的 RelativePanel.AlignVerticalCenterWith XAML 附加屬性的值。

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

屬性值

RelativePanel.AlignVerticalCenterWith XAML 附加屬性的識別碼。

備註

此屬性只是屬性系統的識別碼,而且不會在大部分的應用程式案例中使用。 在大部分情況下,您會在 XAML 中設定 RelativePanel.AlignVerticalCenterWith XAML 附加屬性,而且不需要此識別碼。

若要存取程式碼中的 RelativePanel.AlignVerticalCenterWith 附加屬性,您可以使用相依性屬性系統、呼叫 GetValueSetValue ,並傳遞 RelativePanel.AlignVerticalCenterWithProperty 做為相依性屬性識別碼。 在程式碼中取得或設定值的另一種方式是使用 GetAlignVerticalCenterWithSetAlignVerticalCenterWith

適用於

另請參閱