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/c3d7bb948be1a88726bb3e6719874057 to your computer and use it in GitHub Desktop.
Save juucustodio/c3d7bb948be1a88726bb3e6719874057 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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:ShareDemo"
x:Class="ShareDemo.MainPage">
<ContentPage.ToolbarItems>
<ToolbarItem Icon="share.png" Clicked="Share_Tapped"/>
</ContentPage.ToolbarItems>
<StackLayout>
<Image Source="logo.png"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
<Label Text="www.julianocustodio.com"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment