Step1: Create A Xaml File
Step2: Create a Clicked Event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackLayout> | |
<Image Source="unnamed.jpg" VerticalOptions="Center" HorizontalOptions="Center"> | |
<Image.GestureRecognizers> | |
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped_1"/> | |
</Image.GestureRecognizers> | |
</Image> | |
</StackLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void TapGestureRecognizer_Tapped_1(object sender, EventArgs e) | |
{ | |
await Navigation.PushAsync(new Page2()); | |
} |
No comments:
Post a Comment