Class SliderInput
Inheritance
System.Object
SliderInput
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: SensusAndroid.dll
public class SliderInput : Input, INotifyPropertyChanged, IVariableDefiningInput
Constructors
Declaration
Declaration
public SliderInput(string labelText, double minimum, double maximum)
Parameters
Type |
Name |
Description |
System.String |
labelText |
|
System.Double |
minimum |
|
System.Double |
maximum |
|
Declaration
public SliderInput(string labelText, string name, double minimum, double maximum)
Parameters
Type |
Name |
Description |
System.String |
labelText |
|
System.String |
name |
|
System.Double |
minimum |
|
System.Double |
maximum |
|
Fields
Declaration
public const string EFFECT_RESOLUTION_EFFECT_NAME = "SliderInputEffect"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string EFFECT_RESOLUTION_NAME = "InputEffects.SliderInputEffect"
Field Value
Type |
Description |
System.String |
|
Properties
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, 2, false)]
public string DefinedVariable { get; set; }
Property Value
Type |
Description |
System.String |
The defined variable.
|
Whether or not to display the minimum and maximum values of the slider.
Declaration
[OnOffUiProperty("Display Min and Max:", true, 16)]
public bool DisplayMinMax { get; set; }
Property Value
Type |
Description |
System.Boolean |
true to display the minimum and maximum; otherwise, false .
|
Whether or not the slider's current value should be displayed.
Declaration
[OnOffUiProperty("Display Slider Value:", true, 15)]
public bool DisplaySliderValue { get; set; }
Property Value
Type |
Description |
System.Boolean |
true to display slider value; otherwise, false .
|
Declaration
public override bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
How much the slider's value should change between points.
Declaration
[EntryDoubleUiProperty(null, true, 12, true)]
public double Increment { get; set; }
Property Value
Type |
Description |
System.Double |
The increment.
|
Label to display at the left end of the slider range.
Declaration
[EntryStringUiProperty("Left Label:", true, 13, false)]
public string LeftLabel { get; set; }
Property Value
Type |
Description |
System.String |
The left label.
|
Maximum value available on the slider.
Declaration
[EntryDoubleUiProperty(null, true, 11, true)]
public double Maximum { get; set; }
Property Value
Type |
Description |
System.Double |
The maximum.
|
Minimum value available on the slider.
Declaration
[EntryDoubleUiProperty(null, true, 10, true)]
public double Minimum { get; set; }
Property Value
Type |
Description |
System.Double |
The minimum.
|
Label to display at the right end of the slider range.
Declaration
[EntryStringUiProperty("Right Label:", true, 14, false)]
public string RightLabel { get; set; }
Property Value
Type |
Description |
System.String |
The left label.
|
TipText
A short tip that explains how to pick an item from the dialog window.
Declaration
[EntryStringUiProperty("Tip Text:", true, 9, 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