示例#1
0
文件: UIView.cs 项目: tah-in/Wires
 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));
 }
示例#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));
 }
示例#3
0
文件: UIView.cs 项目: tah-in/Wires
 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));
 }
示例#4
0
文件: UIView.cs 项目: tah-in/Wires
 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));
 }
示例#5
0
文件: UIView.cs 项目: tah-in/Wires
 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));
 }
示例#6
0
文件: UIView.cs 项目: tah-in/Wires
 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)));
 }
示例#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));
 }