New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
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

Initializes a new instance of the RadSpinner class.

C#
public RadSpinner()

Fields

Identifies the DisplayMemberPath property.

C#
public static readonly BindableProperty DisplayMemberPathProperty

Identifies the DisplayStringFormat property.

C#
public static readonly BindableProperty DisplayStringFormatProperty

Identifies the DisplayValueConverter property.

C#
public static readonly BindableProperty DisplayValueConverterProperty

IsLoopingProperty

BindableProperty

Identifies the IsLooping property.

C#
public static readonly BindableProperty IsLoopingProperty

ItemLengthProperty

BindableProperty

Identifies the ItemLength property.

C#
public static readonly BindableProperty ItemLengthProperty

ItemSpacingProperty

BindableProperty

Identifies the ItemSpacing property.

C#
public static readonly BindableProperty ItemSpacingProperty

ItemsSourceProperty

BindableProperty

Identifies the ItemsSource property.

C#
public static readonly BindableProperty ItemsSourceProperty

ItemStyleProperty

BindableProperty

Identifies the ItemStyle property.

C#
public static readonly BindableProperty ItemStyleProperty

ItemTemplateProperty

BindableProperty

Identifies the ItemTemplate property.

C#
public static readonly BindableProperty ItemTemplateProperty

OrientationProperty

BindableProperty

Identifies the Orientation property.

C#
public static readonly BindableProperty OrientationProperty

SelectedIndexProperty

BindableProperty

Identifies the SelectedIndex property.

C#
public static readonly BindableProperty SelectedIndexProperty

SelectedItemProperty

BindableProperty

Identifies the SelectedItem property.

C#
public static readonly BindableProperty SelectedItemProperty

Identifies the SelectedItemStyle property.

C#
public static readonly BindableProperty SelectedItemStyleProperty

Identifies the SelectedItemTemplate property.

C#
public static readonly BindableProperty SelectedItemTemplateProperty

Properties

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

C#
public string DisplayMemberPath { get; set; }
Property Value:

A string that specifies the property path for displaying items.

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

C#
public string DisplayStringFormat { get; set; }
Property Value:

A string that specifies the formatting pattern for items.

DisplayValueConverter

IValueConverter

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

C#
public IValueConverter DisplayValueConverter { get; set; }
Property Value:

An IValueConverter instance for converting item values for display.

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

C#
public bool IsLooping { get; set; }
Property Value:

true if items should loop infinitely; otherwise, false.

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

C#
public double ItemLength { get; set; }
Property Value:

A double value that specifies the length of each item.

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

C#
public double ItemSpacing { get; set; }
Property Value:

A double value that specifies the spacing between items.

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

C#
public IList ItemsSource { get; set; }
Property Value:

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

Gets or sets the Style used to display each item.

C#
public Style ItemStyle { get; set; }
Property Value:

A Style object that defines the appearance of items.

ItemTemplate

DataTemplate

Gets or sets the DataTemplate used to display each item.

C#
public DataTemplate ItemTemplate { get; set; }
Property Value:

A DataTemplate object that defines the visual structure of items.

Gets or sets the orientation of the RadSpinner.

C#
public Orientation Orientation { get; set; }
Property Value:

An Orientation value that specifies the orientation.

Gets or sets the selected index in the RadSpinner.

C#
public int SelectedIndex { get; set; }
Property Value:

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

Gets or sets the selected item in the RadSpinner.

C#
public object SelectedItem { get; set; }
Property Value:

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

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

C#
public Style SelectedItemStyle { get; set; }
Property Value:

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

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

C#
public DataTemplate SelectedItemTemplate { get; set; }
Property Value:

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

Methods

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

C#
protected override Size ArrangeOverride(Rect bounds)
Parameters:boundsRect

The size that the parent computes for the child element.

Returns:

Size

The actual size used.

Called when the handler changes.

C#
protected override void OnHandlerChanged()

Overrides: RadContentView.OnHandlerChanged()

Called when a property value changes.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

The name of the property that changed.

Events

Occurs when the selection changes.

C#
public event EventHandler SelectionChanged