Пример #1
0
 public static Binder <TSource, TView> Hidden <TSource, TView, TPropertyType>(this Binder <TSource, TView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, bool> converter = null)
     where TSource : class
     where TView : View
 {
     converter = converter ?? Converters.Default <TPropertyType, bool>();
     return(binder.Visible(property, converter.Chain(Converters.Invert)));
 }
Пример #2
0
 public static Binder <TSource, TView> Hidden <TSource, TView, TPropertyType>(this Binder <TSource, TView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, bool> converter = null)
     where TSource : class
     where TView : View
 {
     converter = converter ?? Transmuter.Default.GetConverter <TPropertyType, bool>();
     converter = new TypedConverter <TPropertyType, bool>(new ChainConverter(converter, invert));
     return(binder.Visible(property, converter));
 }