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:
public class RadSpinner : RadBorder, IRadBorder, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadBorderRadSpinner
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSpinner class.
public RadSpinner()
Fields
DisplayMemberPathProperty
BindableProperty
Identifies the DisplayMemberPath property.
public static readonly BindableProperty DisplayMemberPathProperty
DisplayStringFormatProperty
BindableProperty
Identifies the DisplayStringFormat property.
public static readonly BindableProperty DisplayStringFormatProperty
DisplayValueConverterProperty
BindableProperty
Identifies the DisplayValueConverter property.
public static readonly BindableProperty DisplayValueConverterProperty
IsLoopingProperty
BindableProperty
Identifies the IsLooping property.
public static readonly BindableProperty IsLoopingProperty
ItemLengthProperty
BindableProperty
Identifies the ItemLength property.
public static readonly BindableProperty ItemLengthProperty
ItemSpacingProperty
BindableProperty
Identifies the ItemSpacing property.
public static readonly BindableProperty ItemSpacingProperty
ItemsSourceProperty
BindableProperty
Identifies the ItemsSource property.
public static readonly BindableProperty ItemsSourceProperty
ItemStyleProperty
BindableProperty
Identifies the ItemStyle property.
public static readonly BindableProperty ItemStyleProperty
ItemTemplateProperty
BindableProperty
Identifies the ItemTemplate property.
public static readonly BindableProperty ItemTemplateProperty
OrientationProperty
BindableProperty
Identifies the Orientation property.
public static readonly BindableProperty OrientationProperty
SelectedIndexProperty
BindableProperty
Identifies the SelectedIndex property.
public static readonly BindableProperty SelectedIndexProperty
SelectedItemProperty
BindableProperty
Identifies the SelectedItem property.
public static readonly BindableProperty SelectedItemProperty
SelectedItemStyleProperty
BindableProperty
Identifies the SelectedItemStyle property.
public static readonly BindableProperty SelectedItemStyleProperty
SelectedItemTemplateProperty
BindableProperty
Identifies the SelectedItemTemplate property.
public static readonly BindableProperty SelectedItemTemplateProperty
Properties
Gets or sets a path to the property used to display the items of the RadSpinner.
public string DisplayMemberPath { get; set; }
A string that specifies the property path for displaying items.
Gets or sets the string format used to display the items of the RadSpinner.
public string DisplayStringFormat { get; set; }
A string that specifies the formatting pattern for items.
DisplayValueConverter
IValueConverter
Gets or sets a IValueConverter used to display the items of the RadSpinner.
public IValueConverter DisplayValueConverter { get; set; }
An IValueConverter instance for converting item values for display.
Gets or sets a value indicating whether the items should loop infinitely while scrolling.
public bool IsLooping { get; set; }
true if items should loop infinitely; otherwise, false.
Gets or sets the length of the items in the RadSpinner.
public double ItemLength { get; set; }
A double value that specifies the length of each item.
Gets or sets the spacing between the items in the RadSpinner.
public double ItemSpacing { get; set; }
A double value that specifies the spacing between items.
Gets or sets a collection used to generate the content of the RadSpinner.
public IList ItemsSource { get; set; }
An IList collection that provides the data for the spinner items.
ItemStyle
Style
Gets or sets the Style used to display each item.
public Style ItemStyle { get; set; }
A Style object that defines the appearance of items.
ItemTemplate
DataTemplate
Gets or sets the DataTemplate used to display each item.
public DataTemplate ItemTemplate { get; set; }
A DataTemplate object that defines the visual structure of items.
Gets or sets the orientation of the RadSpinner.
public Orientation Orientation { get; set; }
An Orientation value that specifies the orientation.
Gets or sets the selected index in the RadSpinner.
public int SelectedIndex { get; set; }
The zero-based index of the selected item, or -1 if no item is selected.
Gets or sets the selected item in the RadSpinner.
public object SelectedItem { get; set; }
The currently selected item, or null if no item is selected.
SelectedItemStyle
Style
Gets or sets the Style used to display the selected item.
public Style SelectedItemStyle { get; set; }
A Style object that defines the appearance of the selected item.
SelectedItemTemplate
DataTemplate
Gets or sets the DataTemplate used to display the selected item.
public DataTemplate SelectedItemTemplate { get; set; }
A DataTemplate object that defines the visual structure of the selected item.
Methods
Arranges the child elements and determines the size for the RadSpinner.
protected override Size ArrangeOverride(Rect bounds)
The size that the parent computes for the child element.
Returns:Size
The actual size used.
Called when the handler changes.
protected override void OnHandlerChanged()
Overrides:
Called when a property value changes.
protected override void OnPropertyChanged(string propertyName = null)
The name of the property that changed.
Events
Occurs when the selection changes.
public event EventHandler SelectionChanged