Share via


RelativePanel.AlignHorizontalCenterWithProperty 属性

定义

获取目标元素的 RelativePanel.AlignHorizontalCenterWith XAML 附加属性的值。

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

属性值

RelativePanel.AlignHorizontalCenterWith XAML 附加属性的标识符。

注解

此属性只是属性系统的标识符,在大多数应用方案中不使用。 在大多数情况下,在 XAML 中设置 RelativePanel.AlignHorizontalCenterWith XAML 附加属性,不需要此标识符。

若要在代码中访问 RelativePanel.AlignHorizontalCenterWith 附加属性,可以使用依赖属性系统,调用 GetValueSetValue ,并将 RelativePanel.AlignHorizontalCenterWithProperty 作为依赖属性标识符传递。 在代码中获取或设置值的另一种方法是使用 GetAlignHorizontalCenterWithSetAlignHorizontalCenterWith

适用于

另请参阅