Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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)));
 }
Exemplo 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));
 }