Exemple #1
0
 public PickerColumnBuilder(UIPickerViewBinding binding, IList <T> dataSource)
 {
     this.binding      = binding;
     column            = new PickerColumn <T>(binding);
     column.DataSource = dataSource;
     binding.AddColumn(column);
 }
Exemple #2
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 #3
0
 public static IProperty <T> SelectedItemProperty <T>(this PickerColumn <T> column)
 {
     return(column.Property(_ => _.SelectedItem));
 }
Exemple #4
0
 public PickerColumnBuilder <U> OtherColumn <U>(out PickerColumn <U> column, IList <U> dataSource)
 {
     return(binding.Column(dataSource, out column));
 }