From 5bc682e7f543cf56d76cba05ed5070aaddbf1d96 Mon Sep 17 00:00:00 2001 From: "leo.tuaillon" Date: Thu, 27 Apr 2023 15:00:15 +0200 Subject: [PATCH] share app backend --- AppShell.xaml | 6 +++--- Pages/MorePage.xaml | 7 ++++++- Pages/MorePage.xaml.cs | 10 +++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/AppShell.xaml b/AppShell.xaml index b65e543..e2f9c0c 100644 --- a/AppShell.xaml +++ b/AppShell.xaml @@ -54,19 +54,19 @@ diff --git a/Pages/MorePage.xaml b/Pages/MorePage.xaml index acfbc15..e9ecd20 100644 --- a/Pages/MorePage.xaml +++ b/Pages/MorePage.xaml @@ -45,7 +45,12 @@ - + + + + + + diff --git a/Pages/MorePage.xaml.cs b/Pages/MorePage.xaml.cs index fc55014..40a0efc 100644 --- a/Pages/MorePage.xaml.cs +++ b/Pages/MorePage.xaml.cs @@ -24,6 +24,14 @@ public partial class MorePage : ContentPage private async void OnLogoutButtonTapped(object sender, EventArgs e) { - await Shell.Current.GoToAsync("//Login"); + await Shell.Current.GoToAsync("//LoginPage"); + } + private async void OnShareButtonClicked(object sender, EventArgs e) + { + await Share.RequestAsync(new ShareTextRequest + { + Text = "Voici le texte à partager", + Title = "Partagez ce texte" + }); } } \ No newline at end of file