Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Button.Image, but no Aspect property?

$
0
0

I want to set the aspect ratio to AspectFit for an image Im assigning to a button, but the Aspect property does not exist on a button or on a FileImageSource. The example image Im using on Android the image appears too big for the button Im assigning it to. Yes I can go and resize all my Droid specific images, but I don't want to.

Also, referencing an image in shared code that you have not yet added as a resource in your Droid project results in the app hanging, with no clear idea why. So here was me working away in iOS, switched over to Droid and the app appeared to hang when rendering the first page. Ive raised a BZ for this:
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/images/

I think Im going to take a step back from this for a while, Im having to do just as much work (if not more) in both iOS and Droid to get the 'common' code working, e.g. with custom renderer's etc. You guys are working hard to resolve these issues and its very much appreciated, I just don't have the time to work through/around/past all the issues. I'll still install any of the 'pre' releases you put out just to take a look.


Viewing all articles
Browse latest Browse all 58056

Trending Articles