RelativePanel.AlignHorizontalCenterWithPanelProperty 屬性

定義

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

屬性值

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

備註

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

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

適用於

另請參閱