Smeedee.iOS.DarkSwitch.DarkSwitch C# (CSharp) Метод

DarkSwitch() публичный Метод

public DarkSwitch ( bool on ) : System
on bool
Результат System
		public DarkSwitch(bool on)
		{
			InsertSegment("ON", 0, false);
			InsertSegment("OFF", 1, false);
			Frame = new System.Drawing.RectangleF(0, 0, 100, 30);
			
			ControlStyle = UISegmentedControlStyle.Bar;
			BackgroundColor = StyleExtensions.transparent;
			TintColor = UIColor.FromRGB(100, 100, 100);
			
			SelectedSegment = (on) ? 0 : 1;
		}
		
DarkSwitch