Esempio n. 1
0
 public static Binder <TSource, TView> Frame <TSource, TView, TPropertyType>(this Binder <TSource, TView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, CGRect> converter = null)
     where TSource : class
     where TView : UIView
 {
     return(binder.Property(property, b => b.Frame, converter));
 }
Esempio n. 2
0
 public static Binder <TSource, UITextView> Text <TSource, TPropertyType>(this Binder <TSource, UITextView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, string> converter = null)
     where TSource : class
 {
     return(binder.Property <TPropertyType, string, EventArgs> (property, b => b.Text, nameof(UITextView.Changed), converter));
 }
Esempio n. 3
0
 public static Binder <TSource, TView> BackgroundColor <TSource, TView, TPropertyType>(this Binder <TSource, TView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, UIColor> converter = null)
     where TSource : class
     where TView : UIView
 {
     return(binder.Property(property, b => b.BackgroundColor, converter));
 }
Esempio n. 4
0
 public static Binder <TSource, TView> UserInteractionEnabled <TSource, TView, TPropertyType>(this Binder <TSource, TView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, bool> converter = null)
     where TSource : class
     where TView : UIView
 {
     return(binder.Property(property, b => b.UserInteractionEnabled, converter));
 }
Esempio n. 5
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 : UIView
 {
     return(binder.Property(property, b => b.Hidden, converter));
 }
Esempio n. 6
0
 public static Binder <TSource, TView> Visible <TSource, TView, TPropertyType>(this Binder <TSource, TView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, bool> converter = null)
     where TSource : class
     where TView : UIView
 {
     converter = converter ?? Converters.Default <TPropertyType, bool>();
     return(binder.Hidden(property, converter.Chain(Converters.Invert)));
 }
Esempio n. 7
0
 public static Binder <TSource, TextView> Text <TSource, TPropertyType>(this Binder <TSource, TextView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, string> converter = null)
     where TSource : class
 {
     return(binder.Property(property, b => b.Text, converter));
 }