语言

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 作为依赖属性标识符传递。 获取或设置代码中的值的另一种方法是使用 GetAlignHorizontalCenterWithPanel 和 SetAlignHorizontalCenterWithPanel。

适用于

另请参阅