whenever I go to one page to another page like mainpage.xaml to profile.xaml page UNHANDLED_EXCEPTION occured.its go to global::System.Diagnostics.Debugger.Break(); in app.g.i.cs page.please help me how to handle this exception.Thanks in advance.
My sample code is:
private async void profile_Click(object sender, RoutedEventArgs e)
{
try
{
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
Frame.Navigate(typeof(profile), 0);
});
}
catch (Exception)
{
throw;
}
}