Class
RadSpinner

Represents a spinner control that allows users to select an item from a list by scrolling through the available options.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class RadSpinner : RadBorder, IRadBorder, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadBorderRadSpinner

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadBorderIRadContentViewITransformIView

Inherited Members RadBorder.BorderColorPropertyRadBorder.CornerRadiusPropertyRadBorder.BorderThicknessPropertyRadBorder.BorderBrushPropertyRadBorder.ChangeVisualState()RadBorder.BorderColorRadBorder.CornerRadiusRadBorder.BorderThicknessRadBorder.BorderBrushRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()

Constructors

RadSpinner()

Initializes a new instance of the RadSpinner class.

Declaration

cs-api-definition
public RadSpinner()

Fields

DisplayMemberPathProperty

Identifies the DisplayMemberPath property.

Declaration

cs-api-definition
public static readonly BindableProperty DisplayMemberPathProperty

Field Value

BindableProperty

DisplayStringFormatProperty

Identifies the DisplayStringFormat property.

Declaration

cs-api-definition
public static readonly BindableProperty DisplayStringFormatProperty

Field Value

BindableProperty

DisplayValueConverterProperty

Identifies the DisplayValueConverter property.

Declaration

cs-api-definition
public static readonly BindableProperty DisplayValueConverterProperty

Field Value

BindableProperty

IsLoopingProperty

Identifies the IsLooping property.

Declaration

cs-api-definition
public static readonly BindableProperty IsLoopingProperty

Field Value

BindableProperty

ItemLengthProperty

Identifies the ItemLength property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemLengthProperty

Field Value

BindableProperty

ItemSpacingProperty

Identifies the ItemSpacing property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemSpacingProperty

Field Value

BindableProperty

ItemStyleProperty

Identifies the ItemStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemStyleProperty

Field Value

BindableProperty

ItemTemplateProperty

Identifies the ItemTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemTemplateProperty

Field Value

BindableProperty

ItemsSourceProperty

Identifies the ItemsSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemsSourceProperty

Field Value

BindableProperty

OrientationProperty

Identifies the Orientation property.

Declaration

cs-api-definition
public static readonly BindableProperty OrientationProperty

Field Value

BindableProperty

SelectedIndexProperty

Identifies the SelectedIndex property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectedIndexProperty

Field Value

BindableProperty

SelectedItemProperty

Identifies the SelectedItem property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectedItemProperty

Field Value

BindableProperty

SelectedItemStyleProperty

Identifies the SelectedItemStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectedItemStyleProperty

Field Value

BindableProperty

SelectedItemTemplateProperty

Identifies the SelectedItemTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectedItemTemplateProperty

Field Value

BindableProperty

Properties

DisplayMemberPath

Gets or sets a path to the property used to display the items of the RadSpinner.

Declaration

cs-api-definition
public string DisplayMemberPath { get; set; }

Property Value

string

A string that specifies the property path for displaying items.

DisplayStringFormat

Gets or sets the string format used to display the items of the RadSpinner.

Declaration

cs-api-definition
public string DisplayStringFormat { get; set; }

Property Value

string

A string that specifies the formatting pattern for items.

DisplayValueConverter

Gets or sets a IValueConverter used to display the items of the RadSpinner.

Declaration

cs-api-definition
public IValueConverter DisplayValueConverter { get; set; }

Property Value

IValueConverter

An IValueConverter instance for converting item values for display.

IsLooping

Gets or sets a value indicating whether the items should loop infinitely while scrolling.

Declaration

cs-api-definition
public bool IsLooping { get; set; }

Property Value

bool

true if items should loop infinitely; otherwise, false.

ItemLength

Gets or sets the length of the items in the RadSpinner.

Declaration

cs-api-definition
public double ItemLength { get; set; }

Property Value

double

A double value that specifies the length of each item.

ItemSpacing

Gets or sets the spacing between the items in the RadSpinner.

Declaration

cs-api-definition
public double ItemSpacing { get; set; }

Property Value

double

A double value that specifies the spacing between items.

ItemStyle

Gets or sets the Style used to display each item.

Declaration

cs-api-definition
public Style ItemStyle { get; set; }

Property Value

Style

A Style object that defines the appearance of items.

ItemTemplate

Gets or sets the DataTemplate used to display each item.

Declaration

cs-api-definition
public DataTemplate ItemTemplate { get; set; }

Property Value

DataTemplate

A DataTemplate object that defines the visual structure of items.

ItemsSource

Gets or sets a collection used to generate the content of the RadSpinner.

Declaration

cs-api-definition
public IList ItemsSource { get; set; }

Property Value

IList

An IList collection that provides the data for the spinner items.

Orientation

Gets or sets the orientation of the RadSpinner.

Declaration

cs-api-definition
public Orientation Orientation { get; set; }

Property Value

Orientation

An Orientation value that specifies the orientation.

SelectedIndex

Gets or sets the selected index in the RadSpinner.

Declaration

cs-api-definition
public int SelectedIndex { get; set; }

Property Value

int

The zero-based index of the selected item, or -1 if no item is selected.

SelectedItem

Gets or sets the selected item in the RadSpinner.

Declaration

cs-api-definition
public object SelectedItem { get; set; }

Property Value

object

The currently selected item, or null if no item is selected.

SelectedItemStyle

Gets or sets the Style used to display the selected item.

Declaration

cs-api-definition
public Style SelectedItemStyle { get; set; }

Property Value

Style

A Style object that defines the appearance of the selected item.

SelectedItemTemplate

Gets or sets the DataTemplate used to display the selected item.

Declaration

cs-api-definition
public DataTemplate SelectedItemTemplate { get; set; }

Property Value

DataTemplate

A DataTemplate object that defines the visual structure of the selected item.

Methods

ArrangeOverride(Rect)

Arranges the child elements and determines the size for the RadSpinner.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Rect bounds)

Parameters

bounds

Rect

The size that the parent computes for the child element.

Returns

Size

The actual size used.

OnHandlerChanged()

Called when the handler changes.

Declaration

cs-api-definition
protected override void OnHandlerChanged()

Overrides RadContentView.OnHandlerChanged()

OnPropertyChanged(string)

Called when a property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

The name of the property that changed.

Events

SelectionChanged

Occurs when the selection changes.

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler