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

Using embedded images as the image for a Button?

$
0
0

Hi,

We are using Xamarin.Forms to build the UI for an iOS app and we have just hit a problem with using images on buttons. We divide our UI based on function areas and thus we have separate projects for each functional area. As a result, we hope to contain the graphics for a particular functional area to only within that project. This, unfortunately, means that we can only use embedded resources to retrieve those graphics. However, the Button view doesn't seem to accept an image that comes out from an embedded resource, but rather only an image that is loaded from a file. Has anyone encountered this problem? Besides putting those graphics into the main app project's Resources folder (so they will become part of the bundle), is there any other way to solve this problem?

Thanks.

GW


Viewing all articles
Browse latest Browse all 58056

Trending Articles