Bewerken

Delen via


Track.Orientation Property

Definition

Gets or sets a value that indicates whether the Track is displayed horizontally or vertically.

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

Property Value

An Orientation enumeration value that indicates whether the Track is displayed horizontally or vertically. The default is Horizontal.

Remarks

If you implement a Track as part of a ScrollBar control and you do not explicitly set the Orientation property, the Track.Orientation property binds to the ScrollBar.Orientation.

If you implement a Track as part of a Slider control and you do not explicitly set the Orientation property, the Track.Orientation property binds to the Slider.Orientation.

Dependency Property Information

Identifier field OrientationProperty
Metadata properties set to true AffectsMeasure

Applies to

See also