Slider.Orientation Property

Definition

Gets or sets the orientation of a Slider.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Slider.Orientation.

public:
 property Orientation Orientation { Orientation get(); void set(Orientation value); };
Orientation Orientation();

void Orientation(Orientation value);
public Orientation Orientation { get; set; }
var orientation = slider.orientation;
slider.orientation = orientation;
Public Property Orientation As Orientation
<Slider Orientation="Horizontal"/>
-or-
<Slider Orientation="Vertical"/>

Property Value

Orientation

One of the Orientation values. The default is Horizontal.

Applies to