I am developing simple windows phone 8.1 app using C# and XAML.
I have command bar in which i have one share button and contact support, follow me.
<Page.BottomAppBar>
<CommandBar x:Name="appBar" removed="White" Foreground="Black">
<CommandBar.PrimaryCommands>
<AppBarButton Icon="PostUpdate" IsCompact="False" Label="Share" Click="AppBarButton_Click_3"/>
</CommandBar.PrimaryCommands>
<CommandBar.SecondaryCommands>
<AppBarButton Label="contact support" />
<AppBarButton Label="follow me" />
</CommandBar.SecondaryCommands>
</CommandBar>
</Page.BottomAppBar>
protected override void OnNavigatedTo(NavigationEventArgs e)
{
DataTransferManager _dataTransferManager = DataTransferManager.GetForCurrentView();
_dataTransferManager = DataTransferManager.GetForCurrentView();
_dataTransferManager.DataRequested += OnDataRequested;
}
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
DataTransferManager _dataTransferManager = DataTransferManager.GetForCurrentView();
_dataTransferManager.DataRequested -= OnDataRequested;
}
private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs e)
{
e.Request.Data.Properties.Title = "Hi!";
e.Request.Data.SetUri(new Uri("http://www.google.com"));
}
private async void AppBarButton_Click_3(object sender, RoutedEventArgs e)
{
DataTransferManager.ShowShareUI();
}
Following thing i want to do:
1.) Url which i entered to share in status is not showing.
2.) when click on contact support it goes to only emails list share options and when user select any of his email then it opens compose email and fill my email id at "Send to", subject="Hello", and some phone details like Device brand, modal, operator, firmware version, hardware version etc.
3.) When user click on follow me then user is redirected to my twitter account page in Internet explorer.