MonoTouch.Dialog.BooleanElementCell.prepareCell C# (CSharp) Method

prepareCell() private method

private prepareCell ( ) : void
return void
		private void prepareCell(){
			_switch = new UISwitch (){
				BackgroundColor = UIColor.Clear
			};
			_switch.AddTarget (delegate {
				_element.Value = _switch.On;
			}, UIControlEvent.ValueChanged);
			
			AccessoryView = _switch;
		}