sultanuzzaman
Member
- Joined
- Sep 13, 2015
- Messages
- 18
- Programming Experience
- 1-3
I have this following code that acts when there's an error:
public void ShowErrorScreen()
{
NavigationService nav = NavigationService.GetNavigationService(this));
nav.Navigate(new Uri("ErrorMsg.xaml", UriKind.RelativeOrAbsolute));
}But it doesn't seem to be working for "this"
Before loading a page a few things are being checked. If eveything is ok it shows a page otherwise it shows another page with error information. I can navigate to a page when I initiate the navigation from a button click event. But I just want to redirect to a page according to my requirement without any click event as stated earlier. Its just loading page on a frame of the main window without any clicking event (after a sequence of error checking). Need an alternate for the method above.
public void ShowErrorScreen()
{
NavigationService nav = NavigationService.GetNavigationService(this));
nav.Navigate(new Uri("ErrorMsg.xaml", UriKind.RelativeOrAbsolute));
}But it doesn't seem to be working for "this"
Before loading a page a few things are being checked. If eveything is ok it shows a page otherwise it shows another page with error information. I can navigate to a page when I initiate the navigation from a button click event. But I just want to redirect to a page according to my requirement without any click event as stated earlier. Its just loading page on a frame of the main window without any clicking event (after a sequence of error checking). Need an alternate for the method above.