Сделал переход на новую страничку

This commit is contained in:
Vlad Torop 2025-03-05 09:15:28 +03:00
parent 3675cf5729
commit 3a5fdb7dab
2 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,12 @@
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
<Button
x:Name="NewPageOpenbtn"
Text="New page"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="NewPageOpenbtn_Clicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>

View File

@ -20,6 +20,11 @@
SemanticScreenReader.Announce(CounterBtn.Text);
}
private async void NewPageOpenbtn_Clicked(System.Object sender, System.EventArgs e)
{
await Navigation.PushAsync(new NewPage1());
}
}
}