UGrokItApiForms.UgiFormsSegmentedControl Class Reference

Overview

Xamarin.Forms version of the iOS UISegmentedControl

Instance Methods

 UgiFormsSegmentedControl ()
 Initializes a new instance of the UgiFormsStatusImage class. More...
 

Properties

IList< string > Segments [get, set]
 Gets or sets the array of strings that are the text for the segments More...
 
int SelectedIndex [get, set]
 Gets or sets the index of the selected segment More...
 
Action< int > Action [get, set]
 Gets or sets the action. More...
 

Constants

static readonly BindableProperty SegmentsProperty
 BindableProperty for Segments More...
 
static readonly BindableProperty SelectedIndexProperty
 BindableProperty for SelectedIndex More...
 
static readonly BindableProperty ActionProperty
 BindableProperty for Action More...
 

Property Documentation

◆ Segments

IList<string> UGrokItApiForms.UgiFormsSegmentedControl.Segments
getset

Gets or sets the array of strings that are the text for the segments

The segments.

◆ SelectedIndex

int UGrokItApiForms.UgiFormsSegmentedControl.SelectedIndex
getset

Gets or sets the index of the selected segment

The index of the selected segment

◆ Action

Action<int> UGrokItApiForms.UgiFormsSegmentedControl.Action
getset

Gets or sets the action.

The code to run when the segment is changed

Constructor & Destructor Documentation

◆ UgiFormsSegmentedControl()

UGrokItApiForms.UgiFormsSegmentedControl.UgiFormsSegmentedControl ( )
inline

Initializes a new instance of the UgiFormsStatusImage class.

Member Data Documentation

◆ SegmentsProperty

readonly BindableProperty UGrokItApiForms.UgiFormsSegmentedControl.SegmentsProperty
static
Initial value:
= BindableProperty.Create (
propertyName: "Segments",
returnType: typeof(IList<string>),
declaringType: typeof(UgiFormsSegmentedControl),
defaultValue: null)

BindableProperty for Segments

◆ SelectedIndexProperty

readonly BindableProperty UGrokItApiForms.UgiFormsSegmentedControl.SelectedIndexProperty
static
Initial value:
= BindableProperty.Create (
propertyName: "SelectedIndex",
returnType: typeof(int),
declaringType: typeof(UgiFormsSegmentedControl),
defaultValue: -1)

BindableProperty for SelectedIndex

◆ ActionProperty

readonly BindableProperty UGrokItApiForms.UgiFormsSegmentedControl.ActionProperty
static
Initial value:
= BindableProperty.Create (
propertyName: "Action",
returnType: typeof(Action<int>),
declaringType: typeof(UgiFormsSegmentedControl),
defaultValue: null)

BindableProperty for Action