Exemple #1
0
        public static PickerColumnBuilder <T> Column <T>(this UIPickerViewBinding binding, IList <T> dataSource, out PickerColumn <T> column)
        {
            var builder = new PickerColumnBuilder <T>(binding, dataSource);

            column = builder.Column;
            return(builder);
        }
Exemple #2
0
 public PickerColumnBuilder(UIPickerViewBinding binding, IList <T> dataSource)
 {
     this.binding      = binding;
     column            = new PickerColumn <T>(binding);
     column.DataSource = dataSource;
     binding.AddColumn(column);
 }
Exemple #3
0
        public static UIPickerViewBinding Picker(this IBindingList bindings, UIPickerView view)
        {
            var binding = new UIPickerViewBinding();

            binding.PickerView = view;
            bindings.Add(binding);
            return(binding);
        }
Exemple #4
0
 public static PickerColumnBuilder <T> Column <T>(this UIPickerViewBinding binding, IList <T> dataSource)
 {
     return(new PickerColumnBuilder <T>(binding, dataSource));
 }
Exemple #5
0
 public PickerColumn(UIPickerViewBinding owner)
 {
     Assert.Argument(owner, "owner").NotNull();
     Owner = owner;
 }