I am trying to assign Background Image to my content designed in xaml
. I have tried different approaches but it is not showing me background image. Here is the
public class MainPage : ContentPage
{
List<string> objEmpCollections = new List<string>();
public MainPage()
{
this.Title = "V V I P's";
//this.BackgroundColor = Color.Maroon;
this.BackgroundImage = "EmpMgmtPCL.Images.NPO-Events-bg.png";
}
}
My suggestion is to put images to folder:
for Android Resources/drawable
for iOS Resources