Jaycee Evangelista
Jaycee Evangelista

Reputation: 1127

How can I put a BackgroundImage in Xamarin.Forms UWP?

Good Day everyone. I'm currently creating the UWP part of my Xamarin.Forms Project and I want to put a BackgroundImage in it. I've noticed that the images I used in Xamarin.Forms.Droid are not being displayed on my UWP. Why is that so?

I used this code BackgroundImage="filename.jpg"

Upvotes: 7

Views: 612

Answers (1)

Yksh
Yksh

Reputation: 3306

Check the image and make sure that you place your images in the application's root directory with Build Action: Content.


Edit :

I suggest you to modify the code as :

BackgroundImage="//Assets/filename.jpg"

Upvotes: 9

Related Questions