Exemple #1
0
            public override void Selected(UIPickerView pickerView, int row, int component)
            {
                var n = pickerView.RowsInComponent(0);

                var cpv = (CheckedPickerView)pickerView;

                cpv.SelectedItem = cpv.Items[row];

                for (var i = 0; i < n; i++)
                {
                    var label = (PickerLabel)pickerView.ViewFor(i, 0);
                    label.IsSelected = cpv.selectedItem == label.Text;
                }
            }
			public override void Selected (UIPickerView pickerView, int row, int component)
			{
				var n = pickerView.RowsInComponent (0);

				var cpv = (CheckedPickerView)pickerView;

				cpv.SelectedItem = cpv.Items[row];
				
				for (var i = 0; i < n; i++) { 
					var label = (PickerLabel)pickerView.ViewFor (i, 0);
					label.IsSelected = cpv.selectedItem == label.Text;
				}
			}