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