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

A base class for all pickers.

Definition

Constructors

Initializes a new instance of the RadPickerBase class.

C#
protected RadPickerBase()

Fields

Identifies the ActualClearButtonStyle property.

C#
public static readonly BindableProperty ActualClearButtonStyleProperty

Identifies the ActualDisplayLabelStyle property.

C#
public static readonly BindableProperty ActualDisplayLabelStyleProperty

Identifies the ActualPlaceholderLabelStyle property.

C#
public static readonly BindableProperty ActualPlaceholderLabelStyleProperty

Identifies the ActualToggleButtonStyle property.

C#
public static readonly BindableProperty ActualToggleButtonStyleProperty

BorderBrushProperty

BindableProperty

Identifies the BorderBrush property.

C#
public static readonly BindableProperty BorderBrushProperty

ClearButtonStyleProperty

BindableProperty

Identifies the ClearButtonStyle property.

C#
public static readonly BindableProperty ClearButtonStyleProperty

Identifies the DisplayLabelStyle property.

C#
public static readonly BindableProperty DisplayLabelStyleProperty

Identifies the DisplayStringFormat property.

C#
public static readonly BindableProperty DisplayStringFormatProperty

DisplayStringProperty

BindableProperty

Identifies the DisplayString property.

C#
public static readonly BindableProperty DisplayStringProperty

DisplayTemplateProperty

BindableProperty

Identifies the DisplayTemplate property.

C#
public static readonly BindableProperty DisplayTemplateProperty

DropDownSettingsProperty

BindableProperty

Identifies the DropDownSettings property.

C#
public static readonly BindableProperty DropDownSettingsProperty

Identifies the IsClearButtonVisible property.

C#
public static readonly BindableProperty IsClearButtonVisibleProperty

IsOpenProperty

BindableProperty

Identifies the IsOpen property.

C#
public static readonly BindableProperty IsOpenProperty

Identifies the IsPlaceholderVisible property.

C#
public static readonly BindableProperty IsPlaceholderVisibleProperty

Identifies the IsToggleButtonVisible property.

C#
public static readonly BindableProperty IsToggleButtonVisibleProperty

PickerModeProperty

BindableProperty

Identifies the PickerMode property.

C#
public static readonly BindableProperty PickerModeProperty

Identifies the PlaceholderLabelStyle property.

C#
public static readonly BindableProperty PlaceholderLabelStyleProperty

PlaceholderProperty

BindableProperty

Identifies the Placeholder property.

C#
public static readonly BindableProperty PlaceholderProperty

Identifies the PlaceholderTemplate property.

C#
public static readonly BindableProperty PlaceholderTemplateProperty

PopupSettingsProperty

BindableProperty

Identifies the PopupSettings property.

C#
public static readonly BindableProperty PopupSettingsProperty

Identifies the ToggleButtonStyle property.

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

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

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

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

C#
public Style ActualToggleButtonStyle { get; }

Gets or sets the border Brush of the picker.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }

Gets or sets the style that will be applied to the clear button. For more information see the ClearCommand.

C#
public Style ClearButtonStyle { get; set; }

Gets the command which sets the selection to null.

C#
public ICommand ClearCommand { get; }

Gets or sets the style that will be applied to the label used to visualize the selection.

C#
public Style DisplayLabelStyle { get; set; }

Gets the result of applying the DisplayStringFormat on the current selection.

C#
public string DisplayString { get; }

Gets or sets the format string that is to be applied to the current selection.

C#
public string DisplayStringFormat { get; set; }

DisplayTemplate

ControlTemplate

Gets or sets the template which will visualize the current selection.

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

C#
public PickerDropDownSettings DropDownSettings { get; set; }

Gets or sets a value indicating whether the clear button is visible.

C#
public bool IsClearButtonVisible { get; set; }

Gets a value indicating whether the selector (popup or dropdown) is toggled.

C#
public bool IsOpen { get; set; }

Gets a value indicating whether the placeholder is currently visible in the picker.

C#
public bool IsPlaceholderVisible { get; }

Gets or sets a value indicating whether the toggle button is visible.

C#
public bool IsToggleButtonVisible { get; set; }

Gets or sets the currently active mode of the picker. For more information see the PickerMode type.

C#
public PickerMode PickerMode { get; set; }

Gets or sets the object to be displayed when there is no selection.

C#
public object Placeholder { get; set; }

Gets or sets the style to be applied to the label defined in the default PlaceholderTemplate.

C#
public Style PlaceholderLabelStyle { get; set; }

PlaceholderTemplate

ControlTemplate

Gets or sets the ControlTemplate which is to be displayed when no selection is available.

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

C#
public PickerPopupSettings PopupSettings { get; set; }

Gets or sets the style that will be applied to the toggle button. For more information see the ToggleCommand.

C#
public Style ToggleButtonStyle { get; set; }

Gets the command which visualizes and hides the selector.

C#
public ICommand ToggleCommand { get; }

Methods

Clears the current selection in the picker, setting it to null.

C#
public void ClearSelection()

Called when the handler for this picker changes. Initializes visual states and sets up platform-specific configurations.

C#
protected override void OnHandlerChanged()

Overrides: RadContentView.OnHandlerChanged()

Remarks:

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.
C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Events

Occurs when the selection in the picker changes.

C#
public event EventHandler SelectionChanged