Here is a simple XAML code.
<StackLayout> <Label x:Name="Label1"/> <Button Clicked="Button1_Clicked"/> </StackLayout>
I want for example when you click on the button to change the text Label1 to Hello World
private void Button1_Clicked(object sender, EventArgs e) { Label1.Text = "Hello World!"; }
But when I turn to Label1, it says to me that there is no such variable.
Help fix