Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active July 8, 2018 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/dccee2f2206ebbf866f0bdab8501b1c5 to your computer and use it in GitHub Desktop.
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
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