Last active
July 8, 2018 03:35
-
-
Save juucustodio/dccee2f2206ebbf866f0bdab8501b1c5 to your computer and use it in GitHub Desktop.
Example of how implement share text and links in Xamarin.Forms applications. - http://julianocustodio.com/share-xamarin-forms
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
using Plugin.Share; | |
using System; | |
using Xamarin.Forms; | |
namespace ShareDemo | |
{ | |
public partial class MainPage : ContentPage | |
{ | |
public MainPage() | |
{ | |
InitializeComponent(); | |
} | |
private void Share_Tapped(object sender, EventArgs e) | |
{ | |
var ShareMessage = new Plugin.Share.Abstractions.ShareMessage | |
{ | |
Text = "Exemplo de como compartilhar textos ou links em Aplicações Xamarin.Forms. / Example of how to share texts or links in Xamarin.Forms Applications.", | |
Title = "Share", | |
Url = "https://www.julianocustodio.com" | |
}; | |
CrossShare.Current.Share(ShareMessage); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment