RadPickerBase
A base class for all pickers.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class RadPickerBase : PickerContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewPickerContentViewRadPickerBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadPickerBase class.
protected RadPickerBase()
Fields
ActualClearButtonStyleProperty
BindableProperty
Identifies the ActualClearButtonStyle property.
public static readonly BindableProperty ActualClearButtonStyleProperty
ActualDisplayLabelStyleProperty
BindableProperty
Identifies the ActualDisplayLabelStyle property.
public static readonly BindableProperty ActualDisplayLabelStyleProperty
ActualPlaceholderLabelStyleProperty
BindableProperty
Identifies the ActualPlaceholderLabelStyle property.
public static readonly BindableProperty ActualPlaceholderLabelStyleProperty
ActualToggleButtonStyleProperty
BindableProperty
Identifies the ActualToggleButtonStyle property.
public static readonly BindableProperty ActualToggleButtonStyleProperty
BorderBrushProperty
BindableProperty
Identifies the BorderBrush property.
public static readonly BindableProperty BorderBrushProperty
ClearButtonStyleProperty
BindableProperty
Identifies the ClearButtonStyle property.
public static readonly BindableProperty ClearButtonStyleProperty
DisplayLabelStyleProperty
BindableProperty
Identifies the DisplayLabelStyle property.
public static readonly BindableProperty DisplayLabelStyleProperty
DisplayStringFormatProperty
BindableProperty
Identifies the DisplayStringFormat property.
public static readonly BindableProperty DisplayStringFormatProperty
DisplayStringProperty
BindableProperty
Identifies the DisplayString property.
public static readonly BindableProperty DisplayStringProperty
DisplayTemplateProperty
BindableProperty
Identifies the DisplayTemplate property.
public static readonly BindableProperty DisplayTemplateProperty
DropDownSettingsProperty
BindableProperty
Identifies the DropDownSettings property.
public static readonly BindableProperty DropDownSettingsProperty
IsClearButtonVisibleProperty
BindableProperty
Identifies the IsClearButtonVisible property.
public static readonly BindableProperty IsClearButtonVisibleProperty
IsOpenProperty
BindableProperty
Identifies the IsOpen property.
public static readonly BindableProperty IsOpenProperty
IsPlaceholderVisibleProperty
BindableProperty
Identifies the IsPlaceholderVisible property.
public static readonly BindableProperty IsPlaceholderVisibleProperty
IsToggleButtonVisibleProperty
BindableProperty
Identifies the IsToggleButtonVisible property.
public static readonly BindableProperty IsToggleButtonVisibleProperty
PickerModeProperty
BindableProperty
Identifies the PickerMode property.
public static readonly BindableProperty PickerModeProperty
PlaceholderLabelStyleProperty
BindableProperty
Identifies the PlaceholderLabelStyle property.
public static readonly BindableProperty PlaceholderLabelStyleProperty
PlaceholderProperty
BindableProperty
Identifies the Placeholder property.
public static readonly BindableProperty PlaceholderProperty
PlaceholderTemplateProperty
BindableProperty
Identifies the PlaceholderTemplate property.
public static readonly BindableProperty PlaceholderTemplateProperty
PopupSettingsProperty
BindableProperty
Identifies the PopupSettings property.
public static readonly BindableProperty PopupSettingsProperty
ToggleButtonStyleProperty
BindableProperty
Identifies the ToggleButtonStyle property.
public static readonly BindableProperty ToggleButtonStyleProperty
Properties
Gets the result of merging the default style and the style set as ClearButtonStyle. This is the actual style that is applied to the clear button in the default ControlTemplate.
public Style ActualClearButtonStyle { get; }
Gets the result of merging the default style and the style set as DisplayLabelStyle. This is the actual style that is applied to the label in the default DisplayTemplate.
public Style ActualDisplayLabelStyle { get; }
Gets the result of merging the default style and the style set as PlaceholderLabelStyle. This is the actual style that is applied to the label in the default PlaceholderTemplate.
public Style ActualPlaceholderLabelStyle { get; }
Gets the result of merging the default style and the style set as ToggleButtonStyle. This is the actual style that is applied to the toggle button in the default ControlTemplate.
public Style ActualToggleButtonStyle { get; }
BorderBrush
Brush
Gets or sets the border Brush of the picker.
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }
ClearButtonStyle
Style
Gets or sets the style that will be applied to the clear button. For more information see the ClearCommand.
public Style ClearButtonStyle { get; set; }
Gets the command which sets the selection to null.
public ICommand ClearCommand { get; }
DisplayLabelStyle
Style
Gets or sets the style that will be applied to the label used to visualize the selection.
public Style DisplayLabelStyle { get; set; }
Gets the result of applying the DisplayStringFormat on the current selection.
public string DisplayString { get; }
Gets or sets the format string that is to be applied to the current selection.
public string DisplayStringFormat { get; set; }
DisplayTemplate
ControlTemplate
Gets or sets the template which will visualize the current selection.
public ControlTemplate DisplayTemplate { get; set; }
Gets or sets the settings that should be applied when the picker is in a drop-down mode. When DropDownSettings are set, the PickerMode property should be set to DropDown. For more information see the PickerMode property.
public PickerDropDownSettings DropDownSettings { get; set; }
Gets or sets a value indicating whether the clear button is visible.
public bool IsClearButtonVisible { get; set; }
Gets a value indicating whether the selector (popup or dropdown) is toggled.
public bool IsOpen { get; set; }
Gets a value indicating whether the placeholder is currently visible in the picker.
public bool IsPlaceholderVisible { get; }
Gets or sets a value indicating whether the toggle button is visible.
public bool IsToggleButtonVisible { get; set; }
Gets or sets the currently active mode of the picker. For more information see the PickerMode type.
public PickerMode PickerMode { get; set; }
Gets or sets the object to be displayed when there is no selection.
public object Placeholder { get; set; }
Gets or sets the style to be applied to the label defined in the default PlaceholderTemplate.
public Style PlaceholderLabelStyle { get; set; }
PlaceholderTemplate
ControlTemplate
Gets or sets the ControlTemplate which is to be displayed when no selection is available.
public ControlTemplate PlaceholderTemplate { get; set; }
Gets or sets the settings that should be applied when the picker is in a popup mode. When PopupSettings are set, the PickerMode property should be set to Popup. For more information see the PickerMode property.
public PickerPopupSettings PopupSettings { get; set; }
ToggleButtonStyle
Style
Gets or sets the style that will be applied to the toggle button. For more information see the ToggleCommand.
public Style ToggleButtonStyle { get; set; }
Gets the command which visualizes and hides the selector.
public ICommand ToggleCommand { get; }
Methods
Clears the current selection in the picker, setting it to null.
public void ClearSelection()
Called when the handler for this picker changes. Initializes visual states and sets up platform-specific configurations.
protected override void OnHandlerChanged()
Overrides:
This method performs the following platform-specific operations:
- On Android: Sets the platform view as focusable in touch mode.
- On iOS/Mac Catalyst: Manages the PickerBaseFocusableView proxy connections.
protected override void OnPropertyChanged(string propertyName = null)
Events
Occurs when the selection in the picker changes.
public event EventHandler SelectionChanged