XForms/Xamarin-Forms-Labs — pull request #180 by getklickle (2014-08-04 15:48:34+00:00)
Title: Create SegmentControl.cs

Sample Usage:

var s = new SegmentControl();
s.TintColor = Color.Green;
s.AddSegment("Green");
s.AddSegment("Yellow");
s.AddSegment("Red");
s.SelectedSegmentChanged += (object sender, int segmentIndex)=>{
if (segmentIndex == 0)
s.TintColor = Color.Green;
else if (segmentIndex == 1)
s.TintColor = Color.Yellow;
else if (segmentIndex == 2)
s.TintColor = Color.Red;
};
s.SelectedSegment = 1;