public ImageRenderer( global::Android.Content.Context context, XForms.Controls.Image imageControl) : base(context, imageControl) { this._nativeImageView = new AndroidImageView(context); this._nativeImageView.SetScaleType(global::Android.Widget.ImageView.ScaleType.FitXy); this.SetNativeElement(this._nativeImageView); }
public ImageRenderer( XForms.Controls.Image imageControl) : base(imageControl) { this._xamlImage = new OwnerDrawControl(this); this.SetNativeElement(this._xamlImage); this._graphicsManager = GraphicsManager.Shared; this._graphicsManager.ReloadResources += GraphicsManager_ReloadResources; this._graphicsManager.Redraw += GraphicsManager_Redraw; }