Beispiel #1
0
 public static Binder <TSource, ImageView> ImageAsync <TSource, TPropertyType>(this Binder <TSource, ImageView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, Task <Bitmap> > converter, Bitmap loading = null)
     where TSource : class
 {
     return(binder.PropertyAsync(property, b => ((BitmapDrawable)b.Drawable).Bitmap, (b, v) => b.SetImageBitmap(v), converter, loading));
 }
Beispiel #2
0
 public static Binder <TSource, UIImageView> ImageAsync <TSource, TPropertyType>(this Binder <TSource, UIImageView> binder, Expression <Func <TSource, TPropertyType> > property, IConverter <TPropertyType, Task <UIImage> > converter, UIImage loading = null)
     where TSource : class
 {
     return(binder.PropertyAsync(property, b => b.Image, converter, loading));
 }