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