public static async void OnUnhandledException(UnhandledExceptionEventArgs e, string sender) { Analytics.TrackEvent("Unhandled Exception"); //Analytics. string message = e.Exception.Message + Environment.NewLine + Environment.NewLine + e.Exception.StackTrace; var msg = new MessageDialog(message, "Somethig is f*****g wrong, you gotta report this to developer"); msg.Commands.Add(new UICommand("Report this to developer", async delegate { $"mailto:[email protected]?subject={Uri.EscapeDataString($"Exception happened in Denna {Extentions.GetApplicationVersion()}")}&body={Uri.EscapeDataString(message)}".OpenUrl(); })); await msg.ShowAsync(); }
public About() { InitializeComponent(); ApplicationVersion.Text = Extentions.GetApplicationVersion(); }