Class SfPicker
A customized view for picking an element in a list.
Inheritance
Namespace: Syncfusion.iOS.DataForm.Editors
Assembly: Syncfusion.SfDataForm.iOS.dll
Syntax
public class SfPicker : UIView
Constructors
SfPicker()
Initializes a new instance of the SfPicker class.
Declaration
public SfPicker()
Properties
DisplayMemberPath
Gets or sets the display member path of the picker.
Declaration
public string DisplayMemberPath { get; set; }
Property Value
Type |
---|
System.String |
ItemsSource
Gets or sets the ItemsSource of the picker.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable | The data source for the picker. |
SelectedIndex
Gets or sets the selected index of the picker.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
SelectedItem
Gets or sets the selected item of the picker.
Declaration
public object SelectedItem { get; set; }
Property Value
Type |
---|
System.Object |
TextAlignment
Gets or sets the text alignment of the picker.
Declaration
public UITextAlignment TextAlignment { get; set; }
Property Value
Type |
---|
UIKit.UITextAlignment |
TextColor
Gets or sets the text color of the picker.
Declaration
public UIColor TextColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
ValueMemberPath
Gets or sets the value member path of the picker.
Declaration
public string ValueMemberPath { get; set; }
Property Value
Type |
---|
System.String |
Methods
BecomeFirstResponder()
Request the object to become the first responder.
Declaration
public override bool BecomeFirstResponder()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the object accepts becoming the first responder, or false if it does not. The default is to accept. |
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |
LayoutSubviews()
Layout the children in the view. Derived classes with children should override this method and call layout on each of their children.
Declaration
public override void LayoutSubviews()
ResignFirstResponder()
Called when this UIResponder has been asked to resign its first responder status.
Declaration
public override bool ResignFirstResponder()
Returns
Type | Description |
---|---|
System.Boolean | true if the UIKit.UIResponder resigned first responder status. |
WillMoveToWindow(UIWindow)
This method is called by the runtime when assigning a new UIKit.UIWindow to the UIKit.UIView's view hierarchy. This method will be called on all UIKit.UIViews in the hierarchy, not just the top-level UIKit.UIView. By default, this method does nothing. Application developers can override the method in order to perform additional processing.
Declaration
public override void WillMoveToWindow(UIWindow window)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIWindow | window | Called before the window at the root of the UIKit.UIView's view hierarchy changes. |
Events
EditingCompleted
Occurs when editing is completed.
Declaration
public event EventHandler EditingCompleted
Event Type
Type |
---|
System.EventHandler |
SelectedIndexChanged
Occurs when selected index of SfPicker is changed.
Declaration
public event EventHandler SelectedIndexChanged
Event Type
Type |
---|
System.EventHandler |