IBindableBuilder <TNextHolder, TItemValue, IList <TItemValue> > IListBuilder <TItemValue> .Holding <TNextHolder>(
     HolderFactory <TNextHolder> holderFactory,
     BindingFunction <TNextHolder, TItemValue> bind)
 {
     Node.HolderFactory = v => holderFactory(v);
     Node.Binder        = (h, v) => bind((TNextHolder)h, (TItemValue)v);
     return(new NodeBuilder <TNextHolder, TItemValue, IList <TItemValue> >(Node));
 }
 IBindableBuilder <THolder, T, T> ISingleViewBuilder <THolder> .Bindable <T>(BindingFunction <THolder, T> bind)
 {
     Node.Binder = (h, v) => bind((THolder)h, (T)v);
     return(new NodeBuilder <THolder, T, T>(Node));
 }
Пример #3
0
 public Binding(Value <float> target, BindingFunction fn = null)
 {
     _target = target;
     _fn     = fn;
 }