ClassRadSpinner
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:
public class RadSpinner : RadBorder, IRadBorder, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadBorderRadSpinner
Implements:
Inherited Members
Constructors
RadSpinner()
Initializes a new instance of the RadSpinner class.
Declaration
public RadSpinner()
Fields
DisplayMemberPathProperty
Identifies the DisplayMemberPath property.
Declaration
public static readonly BindableProperty DisplayMemberPathProperty
Field Value
BindableProperty
DisplayStringFormatProperty
Identifies the DisplayStringFormat property.
Declaration
public static readonly BindableProperty DisplayStringFormatProperty
Field Value
BindableProperty
DisplayValueConverterProperty
Identifies the DisplayValueConverter property.
Declaration
public static readonly BindableProperty DisplayValueConverterProperty
Field Value
BindableProperty
IsLoopingProperty
Identifies the IsLooping property.
Declaration
public static readonly BindableProperty IsLoopingProperty
Field Value
BindableProperty
ItemLengthProperty
Identifies the ItemLength property.
Declaration
public static readonly BindableProperty ItemLengthProperty
Field Value
BindableProperty
ItemSpacingProperty
Identifies the ItemSpacing property.
Declaration
public static readonly BindableProperty ItemSpacingProperty
Field Value
BindableProperty
ItemStyleProperty
Identifies the ItemStyle property.
Declaration
public static readonly BindableProperty ItemStyleProperty
Field Value
BindableProperty
ItemTemplateProperty
Identifies the ItemTemplate property.
Declaration
public static readonly BindableProperty ItemTemplateProperty
Field Value
BindableProperty
ItemsSourceProperty
Identifies the ItemsSource property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
BindableProperty
OrientationProperty
Identifies the Orientation property.
Declaration
public static readonly BindableProperty OrientationProperty
Field Value
BindableProperty
SelectedIndexProperty
Identifies the SelectedIndex property.
Declaration
public static readonly BindableProperty SelectedIndexProperty
Field Value
BindableProperty
SelectedItemProperty
Identifies the SelectedItem property.
Declaration
public static readonly BindableProperty SelectedItemProperty
Field Value
BindableProperty
SelectedItemStyleProperty
Identifies the SelectedItemStyle property.
Declaration
public static readonly BindableProperty SelectedItemStyleProperty
Field Value
BindableProperty
SelectedItemTemplateProperty
Identifies the SelectedItemTemplate property.
Declaration
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.
DisplayStringFormat
Gets or sets the string format used to display the items of the RadSpinner.
DisplayValueConverter
Gets or sets a IValueConverter used to display the items of the RadSpinner.
Declaration
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
public bool IsLooping { get; set; }
Property Value
true
if items should loop infinitely; otherwise, false
.
ItemLength
Gets or sets the length of the items in the RadSpinner.
ItemSpacing
Gets or sets the spacing between the items in the RadSpinner.
ItemStyle
Gets or sets the Style used to display each item.
Declaration
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
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.
Orientation
Gets or sets the orientation of the RadSpinner.
Declaration
public Orientation Orientation { get; set; }
Property Value
An Orientation value that specifies the orientation.
SelectedIndex
Gets or sets the selected index in the RadSpinner.
Declaration
public int SelectedIndex { get; set; }
Property Value
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
public object SelectedItem { get; set; }
Property Value
The currently selected item, or null
if no item is selected.
SelectedItemStyle
Gets or sets the Style used to display the selected item.
Declaration
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
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
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
protected override void OnHandlerChanged()
Overrides
OnPropertyChanged(string)
Called when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
The name of the property that changed.
Events
SelectionChanged
Occurs when the selection changes.