Class ItemPickerDialogInput
Inheritance
System.Object
ItemPickerDialogInput
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: SensusAndroid.dll
public class ItemPickerDialogInput : ItemPickerInput, INotifyPropertyChanged, IVariableDefiningInput
Constructors
Declaration
public ItemPickerDialogInput()
Declaration
public ItemPickerDialogInput(string labelText, string tipText, List<string> items)
Parameters
| Type |
Name |
Description |
| System.String |
labelText |
|
| System.String |
tipText |
|
| System.Collections.Generic.List<System.String> |
items |
|
Declaration
public ItemPickerDialogInput(string labelText, string name, string tipText, List<string> items)
Parameters
| Type |
Name |
Description |
| System.String |
labelText |
|
| System.String |
name |
|
| System.String |
tipText |
|
| System.Collections.Generic.List<System.String> |
items |
|
Properties
Whether or not to allow the user to clear the current selection.
Declaration
[OnOffUiProperty("Allow Clear Selection:", true, 12)]
public bool AllowClearSelection { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
true to allow clear selection; otherwise, false.
|
Declaration
public override string DefaultName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
The name of the variable in VariableValueUiProperty that this input should
define the value for. For example, if you wanted this input to supply the value for a variable
named study-name, then set this field to study-name and the user's selection will be used as
the value for this variable.
Declaration
[EntryStringUiProperty("Define Variable:", true, 13, false)]
public string DefinedVariable { get; set; }
Property Value
| Type |
Description |
| System.String |
The defined variable.
|
Declaration
public override bool Enabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
These are the items that the user will have to select from.
Declaration
[EditableListUiProperty(null, true, 11, true)]
public List<string> Items { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<System.String> |
The items.
|
TipText
A short tip that explains how to pick an item from the dialog window.
Declaration
[EntryStringUiProperty("Tip Text:", true, 10, false)]
public string TipText { get; set; }
Property Value
| Type |
Description |
| System.String |
The tip text.
|
Declaration
public override object Value { get; }
Property Value
| Type |
Description |
| System.Object |
|
Overrides
Methods
Declaration
public override View GetView(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| Xamarin.Forms.View |
|
Overrides
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged