private async Task HandleShareCommandAsync()
{
try
{
// tell the OS that we've started...
this.ShareOperation.ReportStarted();
// placeholder message...
await this.Host.ShowAlertAsync("Shared.");
}
catch (Exception ex)
{
Debug.WriteLine("Sharing failed: " + ex.ToString());
this.ShareOperation.ReportError("The sharing operation failed.");
}
finally
{
this.ShareOperation.ReportCompleted();
}
}