Xamarin.Forms Guides | Samples

Xamarin.Forms.Slider Class

A View control that inputs a linear value.

See Also: Slider

Syntax

[Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._SliderRenderer))]
public class Slider : View, IElementConfiguration<Slider>

Remarks

XAML for Xamarin.Forms supports the following properties for the Slider class:

PropertyValue
Maximum

An integer or decimal literal.

Minimum

An integer or decimal literal. If this value is nonnegative, it must appear lexically below Maximum, so that validation can succeed.

Value

An integer or decimal literal that represents a number that is in the range[Minimum,Maximum].

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.Slider are listed below.

See Also: View

Public Constructors

Initializes a new instance of the Slider class.
Initializes a new instance of the Slider class.

Public Fields

static readonly
MaximumPropertyBindableProperty. Identifies the Maximum bindable property.
static readonly
MinimumPropertyBindableProperty. Identifies the Minimum bindable property.
static readonly
ValuePropertyBindableProperty. Identifies the Value bindable property.

Public Properties

MaximumDouble. Gets or sets the maximum selectable value for the Slider. This is a bindable property.
MinimumDouble. Gets or sets the minimum selectable value for the Slider. This is a bindable property.
ValueDouble. Gets or sets the current value. This is a bindable property.

Public Methods

Public Events

ValueChangedThe ValueChanged event is fired when the Value property changes.