The background won't change, it will fixed to the first background always even set to another image path ... Is it a bug?
`var btn = new Button () {
Text = "Change background 1"
};
btn.Clicked += (object sender, EventArgs e) =>
{
this.BackgroundImage = GlobalVar.documentsPathBase + "/6/mainmenubg.png";
};
var btn2 = new Button () {
Text = "Change background 2"
};
btn2.Clicked += (object sender, EventArgs e) =>
{
this.BackgroundImage = GlobalVar.documentsPathBase + "/7/mainmenubg.png";
};
var btn3 = new Button () {
Text = "Set Background empty"
};
btn3.Clicked += (object sender, EventArgs e) => {
this.BackgroundImage = "";
};
Content = new StackLayout () {
Children = {btn, btn2, btn3}
};`