Introduction
This article demonstrates how to developXamarin.Forms applications for sharing links on social media. Xamarin is a platform that allows us to create a multi-platform mobile application for Android, Windows, and iOS through a single integrated development environment (IDE).

Let's start.
Step 1
Open Visual Studio and go to New Project >> Installed >> Visual C# >> Cross-Platform.
Select Cross-Platform app, then give your project a name and location.
Step 2
Install the following NuGet package to your project.
- Plugin.Share
Now, select the following NuGet package and select your project to install the package.
The package is installed successfully in your project.
Step 3
Open Solution Explorer >> Project Name (Portable) >> MainPage.xaml. Open the design view of this page.

The code is given below.
XAML Code
- <?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:Link_Share"
- x:Class="Link_Share.MainPage">
- <ContentPage.Content>
- <StackLayout>
- <Button Text="Share"
- HorizontalOptions="Center"
- VerticalOptions="Center"
- Clicked="Button_Clicked"/>
- </StackLayout>
- </ContentPage.Content>
- </ContentPage>



nagesh vechaPosted Feb 11, 2020, 5:48 AM
ShareLink method is not coming and will you please tell me how can i share into twitter as a form of link
Nicholas ChewPosted Jun 17, 2018, 6:05 AM
How can we track that user had successfully shared?