Table of Contents

Class HorizontalSlider

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A slider control that allows users to select a value from a horizontal range.

public class HorizontalSlider : Slider, IItemWithId, INotifyAttachedPropertyChanged
Inheritance
HorizontalSlider
Implements
Inherited Members

Constructors

HorizontalSlider(Stylesheet, string)

Initializes a new instance of the HorizontalSlider class with the specified stylesheet and style.

public HorizontalSlider(Stylesheet stylesheet, string styleName = "")

Parameters

stylesheet Stylesheet

The stylesheet to use for applying the style.

styleName string

The name of the style to apply. Defaults to the default stylesheet style.

HorizontalSlider(string)

Initializes a new instance of the HorizontalSlider class with the specified style.

public HorizontalSlider(string styleName = "")

Parameters

styleName string

The name of the style to apply. Defaults to the default stylesheet style.

Properties

HorizontalAlignment

Gets or sets the horizontal alignment of the slider.

public override HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

Orientation

Gets the orientation of the slider, which is always horizontal.

public override Orientation Orientation { get; }

Property Value

Orientation