通过


Track.Orientation 属性

定义

获取或设置一个值,该值指示是 Track 水平还是垂直显示。

public:
 property System::Windows::Controls::Orientation Orientation { System::Windows::Controls::Orientation get(); void set(System::Windows::Controls::Orientation value); };
public System.Windows.Controls.Orientation Orientation { get; set; }
member this.Orientation : System.Windows.Controls.Orientation with get, set
Public Property Orientation As Orientation

属性值

一个 Orientation 枚举值,该值指示是 Track 水平还是垂直显示。 默认值为 Horizontal

注解

如果实现作为控件的一TrackScrollBar部分,并且未显式设置Orientation属性,则Track.Orientation属性将绑定到该ScrollBar.Orientation属性。

如果实现作为控件的一TrackSlider部分,并且未显式设置Orientation属性,则Track.Orientation属性将绑定到该Slider.Orientation属性。

Dependency 属性信息

物品 价值
标识符字段 OrientationProperty
元数据属性设置为 true AffectsMeasure

适用于

另请参阅