Reputation: 1127
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
Reputation: 3306
Check the image and make sure that you place your images in the application's root directory with Build Action: Content
.
I suggest you to modify the code as :
BackgroundImage="//Assets/filename.jpg"
Upvotes: 9