NavigationStoppedEventHandler
NavigationStoppedEventHandler
NavigationStoppedEventHandler
NavigationStoppedEventHandler
Delegate
Definition
Provides event data for the NavigationStopped event.
public : delegate void NavigationStoppedEventHandler(PlatForm::Object sender, NavigationEventArgs e)public delegate void NavigationStoppedEventHandler(Object sender, NavigationEventArgs e)Public Delegate NavigationStoppedEventHandler(sender As Object, e As NavigationEventArgs)// This API is not available in Javascript.
Parameters
- sender
- PlatForm::Object Object Object Object
The object where the handler is attached.
Event data for the event.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Examples
The following code example demonstrates the use of the NavigationStopped event.
public MainPage()
{
this.InitializeComponent();
this.Frame.NavigationStopped += Frame_NavigationStopped;
}
void Frame_NavigationStopped(object sender, NavigationEventArgs e)
{
Windows.UI.Popups.MessageDialog dialog =
new Windows.UI.Popups.MessageDialog(
String.Format("Navigation to page: {0} was stopped",
e.SourcePageType.ToString()),
"Navigation Stopped");
dialog.ShowAsync();
}