menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PickerBase - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PickerBase

    Contains date picker property and methods.

    Inheritance
    System.Object
    PickerBase
    SfDatePicker
    SfTimePicker
    Namespace: Syncfusion.XForms.Pickers.PickerHelper
    Assembly: Syncfusion.SfPicker.XForms.dll
    Syntax
    public abstract class PickerBase : ContentView

    Constructors

    PickerBase()

    Initializes a new instance of the PickerBase class.

    Declaration
    public PickerBase()

    Fields

    BackgroundColorProperty

    Using a DependencyProperty as the backing store for BackgroundColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty BackgroundColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    BorderColorProperty

    Backing store for the BorderColor property.

    Declaration
    public static readonly BindableProperty BorderColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    CancelButtonBackgroundColorProperty

    Using a DependencyProperty as the backing store for CancelButtonBackgroundColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty CancelButtonBackgroundColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    CancelButtonTextColorProperty

    Using a DependencyProperty as the backing store for CancelButtonTextColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty CancelButtonTextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColumnHeaderBackgroundColorProperty

    Backing store for the ColumnHeaderBackgroundColor property.

    Declaration
    public static readonly BindableProperty ColumnHeaderBackgroundColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColumnHeaderFontAttributeProperty

    Backing store for the ColumnHeaderFontAttribute property.

    Declaration
    public static readonly BindableProperty ColumnHeaderFontAttributeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColumnHeaderFontFamilyProperty

    Backing store for the ColumnHeaderFontFamily property.

    Declaration
    public static readonly BindableProperty ColumnHeaderFontFamilyProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColumnHeaderFontSizeProperty

    Backing store for the ColumnHeaderFontSize property.

    Declaration
    public static readonly BindableProperty ColumnHeaderFontSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColumnHeaderHeightProperty

    Backing store for the ColumnHeaderHeight property.

    Declaration
    public static readonly BindableProperty ColumnHeaderHeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColumnHeaderTextColorProperty

    Using a DependencyProperty as the backing store for ColumnHeaderTextColor. This enables animation, styling, binding, etc.

    Declaration
    public static readonly BindableProperty ColumnHeaderTextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    EnableLoopingProperty

    Using a DependencyProperty as the backing store for EnableLooping. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty EnableLoopingProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    FooterHeightProperty

    Backing store for the FooterHeight property.

    Declaration
    public static readonly BindableProperty FooterHeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    FooterViewProperty

    Backing store for the FooterView property.

    Declaration
    public static readonly BindableProperty FooterViewProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderBackgroundColorProperty

    Using a DependencyProperty as the backing store for HeaderBackgroundColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty HeaderBackgroundColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderFontAttributeProperty

    Backing store for the HeaderFontAttribute property.

    Declaration
    public static readonly BindableProperty HeaderFontAttributeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderFontFamilyProperty

    Backing store for the HeaderFontFamily property.

    Declaration
    public static readonly BindableProperty HeaderFontFamilyProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderFontSizeProperty

    Backing store for the HeaderFontSize property.

    Declaration
    public static readonly BindableProperty HeaderFontSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderHeightProperty

    Backing store for the HeaderHeight property.

    Declaration
    public static readonly BindableProperty HeaderHeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderTextColorProperty

    Identifies the HeaderTextColor dependency property.

    Declaration
    public static readonly BindableProperty HeaderTextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderViewProperty

    Backing store for the HeaderView property.

    Declaration
    public static readonly BindableProperty HeaderViewProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    IsOpenProperty

    Using a DependencyProperty as the backing store for IsOpen. This enables animation, styling, binding, etc.

    Declaration
    public static readonly BindableProperty IsOpenProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ItemHeightProperty

    Backing store for the ItemHeight property.

    Declaration
    public static readonly BindableProperty ItemHeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    OKButtonBackgroundColorProperty

    Using a DependencyProperty as the backing store for OKButtonBackgroundColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty OKButtonBackgroundColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    OKButtonTextColorProperty

    Using a DependencyProperty as the backing store for OKButtonTextColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly BindableProperty OKButtonTextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    PickerHeightProperty

    Backing store for the PickerHeight property.

    Declaration
    public static readonly BindableProperty PickerHeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    PickerModeProperty

    Identifies the PickerMode dependency property.

    Declaration
    public static readonly BindableProperty PickerModeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    PickerWidthProperty

    Backing store for the PickerWidth property.

    Declaration
    public static readonly BindableProperty PickerWidthProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    SelectedItemFontAttributeProperty

    Backing store for the SelectedItemFontAttribute property.

    Declaration
    public static readonly BindableProperty SelectedItemFontAttributeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    SelectedItemFontFamilyProperty

    Backing store for the SelectedItemFontFamily property.

    Declaration
    public static readonly BindableProperty SelectedItemFontFamilyProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    SelectedItemFontSizeProperty

    Backing store for the SelectedItemFontSize property.

    Declaration
    public static readonly BindableProperty SelectedItemFontSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    SelectedItemTextColorProperty

    Backing store for the SelectedItemTextColor property.

    Declaration
    public static readonly BindableProperty SelectedItemTextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    SelectionBackgroundColorProperty

    Backing store for the SelectionBackgroundColor property.

    Declaration
    public static readonly BindableProperty SelectionBackgroundColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowColumnHeaderProperty

    Backing store for the ShowColumnHeader property.

    Declaration
    public static readonly BindableProperty ShowColumnHeaderProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowFooterProperty

    Backing store for the ShowFooter property.

    Declaration
    public static readonly BindableProperty ShowFooterProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowHeaderProperty

    Backing store for the ShowHeader property.

    Declaration
    public static readonly BindableProperty ShowHeaderProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    UnselectedItemFontAttributeProperty

    Backing store for the UnselectedItemFontAttribute property.

    Declaration
    public static readonly BindableProperty UnselectedItemFontAttributeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    UnselectedItemFontFamilyProperty

    Backing store for the UnselectedItemFontFamily property.

    Declaration
    public static readonly BindableProperty UnselectedItemFontFamilyProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    UnselectedItemFontSizeProperty

    Backing store for the UnselectedItemFontSize property.

    Declaration
    public static readonly BindableProperty UnselectedItemFontSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    UnselectedItemTextColorProperty

    Backing store for the UnselectedItemTextColor property.

    Declaration
    public static readonly BindableProperty UnselectedItemTextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    BackgroundColor

    Gets or sets background color. This is a bindable property.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    BorderColor

    Gets or sets the value of the BorderColor. This property can be used to change the border color of the control.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    CancelButtonBackgroundColor

    Gets or sets cancel button background color. This is a bindable property.

    Declaration
    public Color CancelButtonBackgroundColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    CancelButtonTextColor

    Gets or sets cancel button text color. This is a bindable property.

    Declaration
    public Color CancelButtonTextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    ColumnHeaderBackgroundColor

    Gets or sets the value of the ColumnHeaderBackgroundColor. This property can be used to change the background color of the column header in SfPicker.

    Declaration
    public Color ColumnHeaderBackgroundColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    ColumnHeaderFontAttribute

    Gets or sets the value of ColumnHeaderFontAttribute that indicates font attributes of column header text.

    Declaration
    public FontAttributes ColumnHeaderFontAttribute { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.FontAttributes

    The column header font attribute.

    ColumnHeaderFontFamily

    Gets or sets the value of ColumnHeaderFontFamily that indicates font family of column header text.

    Declaration
    public string ColumnHeaderFontFamily { get; set; }
    Property Value
    Type Description
    System.String

    The header font family.

    ColumnHeaderFontSize

    Gets or sets the value of ColumnHeaderFontSize. This property can be used to change the size of the column header font in SfPicker.

    Declaration
    public double ColumnHeaderFontSize { get; set; }
    Property Value
    Type
    System.Double

    ColumnHeaderHeight

    Gets or sets the value of ColumnHeaderHeight. This property can be used to customize the height of the column header in SfPicker.

    Declaration
    public double ColumnHeaderHeight { get; set; }
    Property Value
    Type
    System.Double

    ColumnHeaderTextColor

    Gets or sets column header text color. This is a bindable property.

    Declaration
    public Color ColumnHeaderTextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    EnableLooping

    Gets or sets a value indicating whether gets or sets enable looping. This is a bindable property.

    Declaration
    public bool EnableLooping { get; set; }
    Property Value
    Type
    System.Boolean

    FooterHeight

    Gets or sets the value of FooterHeight. This property can be used to customize the height of the footer in SfPicker.

    Declaration
    public double FooterHeight { get; set; }
    Property Value
    Type
    System.Double

    FooterView

    Gets or sets the value of FooterView. This property can be used to customize the footer in Picker.

    Declaration
    public View FooterView { get; set; }
    Property Value
    Type
    Xamarin.Forms.View

    HeaderBackgroundColor

    Gets or sets header background color. This is a bindable property.

    Declaration
    public Color HeaderBackgroundColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    HeaderFontAttribute

    Gets or sets the value of HeaderFontAttribute that indicates the font attributes of header text in SfPicker.

    Declaration
    public FontAttributes HeaderFontAttribute { get; set; }
    Property Value
    Type
    Xamarin.Forms.FontAttributes

    HeaderFontFamily

    Gets or sets the value of HeaderFontFamily that indicates font family of header text in SfPicker.

    Declaration
    public string HeaderFontFamily { get; set; }
    Property Value
    Type Description
    System.String

    The header font family.

    HeaderFontSize

    Gets or sets the value of the HeaderFontSize. This property can be used to change the size of the header font in SfPicker.

    Declaration
    public double HeaderFontSize { get; set; }
    Property Value
    Type
    System.Double

    HeaderHeight

    Gets or sets the value of HeaderHeight. This property can be used to customize the height of the header in SfPicker.

    Declaration
    public double HeaderHeight { get; set; }
    Property Value
    Type
    System.Double

    HeaderTextColor

    Gets or sets header text color. This is a bindable property.

    Declaration
    public Color HeaderTextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    HeaderView

    Gets or sets the value of HeaderView. This property can be used to customize the of header in Picker.

    Declaration
    public View HeaderView { get; set; }
    Property Value
    Type
    Xamarin.Forms.View

    IsOpen

    Gets or sets a value indicating whether gets or sets is open. This is a bindable property.

    Declaration
    public bool IsOpen { get; set; }
    Property Value
    Type
    System.Boolean

    ItemHeight

    Gets or sets the value of the ItemHeight. This property can be used to customize the height of each picker item.

    Declaration
    public double ItemHeight { get; set; }
    Property Value
    Type
    System.Double

    OKButtonBackgroundColor

    Gets or sets ok button background color. This is a bindable property.

    Declaration
    public Color OKButtonBackgroundColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    OKButtonTextColor

    Gets or sets ok button text color. This is a bindable property.

    Declaration
    public Color OKButtonTextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    Parent

    Gets or sets the value of Parent. This property indicates a layout that holds SfPicker.

    Declaration
    public View Parent { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.View

    The default value is null.

    PickerHeight

    Gets or sets the value of PickerHeight. This property can be used to change the height of the Picker.

    Declaration
    public double PickerHeight { get; set; }
    Property Value
    Type
    System.Double

    PickerMode

    Gets or sets picker mode. This is a bindable property.

    Declaration
    public PickerMode PickerMode { get; set; }
    Property Value
    Type
    PickerMode

    PickerWidth

    Gets or sets the value of PickerWidth. This property can be used to change the width of the Picker.

    Declaration
    public double PickerWidth { get; set; }
    Property Value
    Type
    System.Double

    SelectedItemFontAttribute

    Gets or sets the value of SelectedItemFontAttribute that indicates font attributes of selected item text.

    Declaration
    public FontAttributes SelectedItemFontAttribute { get; set; }
    Property Value
    Type
    Xamarin.Forms.FontAttributes

    SelectedItemFontFamily

    Gets or sets the value of SelectedItemFontFamily that indicates the font family of selected item text.

    Declaration
    public string SelectedItemFontFamily { get; set; }
    Property Value
    Type Description
    System.String

    The header font family.

    SelectedItemFontSize

    Gets or sets the value of SelectedItemFontSize. This property can be used to change the size of the selected item font in SfPicker.

    Declaration
    public double SelectedItemFontSize { get; set; }
    Property Value
    Type
    System.Double

    SelectedItemTextColor

    Gets or sets the value of SelectedItemTextColor. This property can be used to change the text color of selected item in SfPicker.

    Declaration
    public Color SelectedItemTextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    SelectionBackgroundColor

    Gets or sets the value of SelectionBackgroundColor. This property can be used to change the background color of selected item.

    Declaration
    public Color SelectionBackgroundColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    ShowColumnHeader

    Gets or sets a value indicating whether gets or sets a value that indicates whether column header is shown or not in the control.

    Declaration
    public bool ShowColumnHeader { get; set; }
    Property Value
    Type
    System.Boolean

    ShowFooter

    Gets or sets a value indicating whether gets or sets a value that indicates whether footer of the control is shown or not.

    Declaration
    public bool ShowFooter { get; set; }
    Property Value
    Type
    System.Boolean

    ShowHeader

    Gets or sets a value indicating whether gets or sets a value that indicates whether header of the control is shown or not.

    Declaration
    public bool ShowHeader { get; set; }
    Property Value
    Type
    System.Boolean

    UnselectedItemFontAttribute

    Gets or sets the value of UnselectedItemFontAttribute that indicates font attributes of the unselected items text.

    Declaration
    public FontAttributes UnselectedItemFontAttribute { get; set; }
    Property Value
    Type
    Xamarin.Forms.FontAttributes

    UnselectedItemFontFamily

    Gets or sets the value of UnselectedItemFontFamily that indicates the font family of unselected items text.

    Declaration
    public string UnselectedItemFontFamily { get; set; }
    Property Value
    Type Description
    System.String

    The header font family.

    UnselectedItemFontSize

    Gets or sets the value of the UnselectedItemFontSize. This property can be used to change the size of the unselected item font in SfPicker.

    Declaration
    public double UnselectedItemFontSize { get; set; }
    Property Value
    Type
    System.Double

    UnselectedItemTextColor

    Gets or sets the value of UnselectedItemTextColor. This property can be used to change the the text color of unselected items.

    Declaration
    public Color UnselectedItemTextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    Methods

    Dispose()

    Dispose method.

    Declaration
    public void Dispose()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved