Class SfPicker
Initializes a new instance of the SfPicker class.
Inheritance
Namespace: Com.Syncfusion.SfPicker
Assembly: Syncfusion.SfPicker.Android.dll
Syntax
public class SfPicker : FrameLayout
Constructors
SfPicker(Context)
Initializes a new instance of the SfPicker class.
Declaration
public SfPicker(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Context. |
SfPicker(Context, IAttributeSet)
Initializes a new instance of the SfPicker class.
Declaration
public SfPicker(Context context, IAttributeSet attrs)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Context. |
Android.Util.IAttributeSet | attrs | The Attribute. |
SfPicker(Context, IAttributeSet, Int32)
Initializes a new instance of the SfPicker class.
Declaration
public SfPicker(Context context, IAttributeSet attrs, int defStyle)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Context. |
Android.Util.IAttributeSet | attrs | The Attribute. |
System.Int32 | defStyle | The style. |
SfPicker(Context, IAttributeSet, Int32, Int32)
Initializes a new instance of the SfPicker class.
Declaration
public SfPicker(Context context, IAttributeSet attrs, int defStyleAttr, int defStyleRes)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Context. |
Android.Util.IAttributeSet | attrs | The Attribute. |
System.Int32 | defStyleAttr | The style attribute. |
System.Int32 | defStyleRes | The style resolution. |
Properties
BackgroundColor
Gets or sets the color of the background.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the background. |
BorderColor
Gets or sets the color of the border.
Declaration
public Color BorderColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the border. |
CancelButton
Gets or sets the cancel button.
Declaration
public Button CancelButton { get; set; }
Property Value
Type | Description |
---|---|
Android.Widget.Button | The cancel button. |
CancelButtonBackgroundColor
Gets or sets the color of the cancel button background.
Declaration
public Color CancelButtonBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the cancel button background. |
CancelButtonTextColor
Gets or sets the color of the cancel button text.
Declaration
public Color CancelButtonTextColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the cancel button text. |
ColumnHeaderBackgroundColor
Gets or sets the color of the column header background.
Declaration
public Color ColumnHeaderBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the column header background. |
ColumnHeaderHeight
Gets or sets the height of the column header.
Declaration
public double ColumnHeaderHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the column header. |
ColumnHeaderText
Gets or sets the column header text.
Declaration
public object ColumnHeaderText { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The column header text. |
ColumnHeaderTextColor
Gets or sets the color of the column header text.
Declaration
public Color ColumnHeaderTextColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the column header text. |
ColumnHeaderTextSize
Gets or sets the size of the column header text.
Declaration
public double ColumnHeaderTextSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the column header text. |
ColumnHeaderTypeface
Gets or sets the column header typeface.
Declaration
public Typeface ColumnHeaderTypeface { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Typeface | The column header typeface. |
DisplayMemberPath
Gets or sets the display member path.
Declaration
public object DisplayMemberPath { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The display member path. |
EnableLooping
Gets or sets a value indicating whether enable Auto Reverse.
Declaration
public bool EnableLooping { get; set; }
Property Value
Type |
---|
System.Boolean |
FooterHeight
Gets or sets the height of the footer.
Declaration
public double FooterHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the footer. |
FooterView
Gets or sets the footer view.
Declaration
public View FooterView { get; set; }
Property Value
Type | Description |
---|---|
Android.Views.View | The footer view. |
HeaderBackgroundColor
Gets or sets the color of the header background.
Declaration
public Color HeaderBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the header background. |
HeaderHeight
Gets or sets the height of the header.
Declaration
public double HeaderHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the header. |
HeaderText
Gets or sets the header text.
Declaration
public string HeaderText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The header text. |
HeaderTextColor
Gets or sets the color of the header text.
Declaration
public Color HeaderTextColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the header text. |
HeaderTextSize
Gets or sets the size of the header text.
Declaration
public double HeaderTextSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the header text. |
HeaderTypeface
Gets or sets the header typeface.
Declaration
public Typeface HeaderTypeface { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Typeface | The header typeface. |
HeaderView
Gets or sets the header view.
Declaration
public View HeaderView { get; set; }
Property Value
Type | Description |
---|---|
Android.Views.View | The header view. |
IsOpen
Gets or sets a value indicating whether is open.
Declaration
public bool IsOpen { get; set; }
Property Value
Type |
---|
System.Boolean |
ItemHeight
Gets or sets the height of the item.
Declaration
public double ItemHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the item. |
ItemsSource
Gets or sets the items source.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable | The items source. |
OkButton
Gets or sets the ok button.
Declaration
public Button OkButton { get; set; }
Property Value
Type | Description |
---|---|
Android.Widget.Button | The ok button. |
OKButtonBackgroundColor
Gets or sets the color of the ok button background.
Declaration
public Color OKButtonBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the ok button background. |
OKButtonTextColor
Gets or sets the color of the ok button text.
Declaration
public Color OKButtonTextColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the ok button text. |
PickerHeight
Gets or sets the height of the picker.
Declaration
public double PickerHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the picker. |
PickerMode
Gets or sets the picker mode.
Declaration
public PickerMode PickerMode { get; set; }
Property Value
Type | Description |
---|---|
PickerMode | The picker mode. |
PickerWidth
Gets or sets the width of the picker.
Declaration
public double PickerWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the picker. |
SelectedIndex
Gets or sets the index of the selected.
Declaration
public object SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The index of the selected. |
SelectedItem
Gets or sets the selected item.
Declaration
public object SelectedItem { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The selected item. |
SelectedItemTextcolor
Gets or sets the selected item text color.
Declaration
public Color SelectedItemTextcolor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The selected item text color. |
SelectedItemTextSize
Gets or sets the size of the selected item text.
Declaration
public double SelectedItemTextSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the selected item text. |
SelectedItemTypeface
Gets or sets the selected item typeface.
Declaration
public Typeface SelectedItemTypeface { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Typeface | The selected item typeface. |
SelectionBorderColor
Gets or sets the color of the selected item border.
Declaration
public Color SelectionBorderColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the selected item background. |
ShowColumnHeader
Gets or sets a value indicating whether show column header.
Declaration
public bool ShowColumnHeader { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowFooter
Gets or sets a value indicating whether show footer.
Declaration
public bool ShowFooter { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowHeader
Gets or sets a value indicating whether show header.
Declaration
public bool ShowHeader { get; set; }
Property Value
Type |
---|
System.Boolean |
UnSelectedItemTextColor
Gets or sets the color of the un selected item text.
Declaration
public Color UnSelectedItemTextColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the un selected item text. |
UnSelectedItemTextSize
Gets or sets the size of the un selected item text.
Declaration
public double UnSelectedItemTextSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the un selected item text. |
UnSelectedItemTypeface
Gets or sets the un selected item typeface.
Declaration
public Typeface UnSelectedItemTypeface { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Typeface | The un selected item typeface. |
Methods
Close()
The Close method.
Declaration
public void Close()
OnConfigurationChanged(Configuration)
Update the orientation
Declaration
protected override void OnConfigurationChanged(Configuration newConfig)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Res.Configuration | newConfig | to get the orientation |
OnDraw(Canvas)
On draw method.
Declaration
protected override void OnDraw(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | canvas | The Canvas. |
OnLayout(Boolean, Int32, Int32, Int32, Int32)
Occurs when the layout gets changed.
Declaration
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | changed | If set to |
System.Int32 | left | The Left Parameter. |
System.Int32 | top | The Top Parameter. |
System.Int32 | right | The Right Parameter. |
System.Int32 | bottom | The Bottom Parameter. |
OnSizeChanged(Int32, Int32, Int32, Int32)
On size changed.
Declaration
protected override void OnSizeChanged(int w, int h, int oldw, int oldh)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | w | The width. |
System.Int32 | h | The height. |
System.Int32 | oldw | The Old w. |
System.Int32 | oldh | The Old h. |
Open()
The open method.
Declaration
public void Open()
Events
CancelButtonClicked
Occurs when cancel button clicked.
Declaration
public event EventHandler<SelectionChangedEventArgs> CancelButtonClicked
Event Type
Type |
---|
System.EventHandler<SelectionChangedEventArgs> |
Closed
Occurs when closed.
Declaration
public event EventHandler<EventArgs> Closed
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |
Closing
Occurs before closed
Declaration
public event EventHandler<CancelEventArgs> Closing
Event Type
Type |
---|
System.EventHandler<System.ComponentModel.CancelEventArgs> |
OkButtonClicked
Occurs when ok button clicked.
Declaration
public event EventHandler<SelectionChangedEventArgs> OkButtonClicked
Event Type
Type |
---|
System.EventHandler<SelectionChangedEventArgs> |
OnColumnLoaded
The On Column Loaded Event.
Declaration
public event EventHandler<ColumnLoadedEventArgs> OnColumnLoaded
Event Type
Type |
---|
System.EventHandler<ColumnLoadedEventArgs> |
OnPickerItemLoaded
Occurs when on picker item loaded.
Declaration
public event EventHandler<PickerViewEventsArgs> OnPickerItemLoaded
Event Type
Type |
---|
System.EventHandler<PickerViewEventsArgs> |
OnSelectionChanged
Occurs when on selection changed.
Declaration
public event EventHandler<SelectionChangedEventArgs> OnSelectionChanged
Event Type
Type |
---|
System.EventHandler<SelectionChangedEventArgs> |
Opened
Occurs when opened.
Declaration
public event EventHandler<EventArgs> Opened
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |