Share via


NavigationStoppedEventHandler Delegate

Definition

Provides event data for the NavigationStopped event.

public delegate void NavigationStoppedEventHandler(Platform::Object ^ sender, NavigationEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4027678171, 4858, 19853, 139, 38, 179, 131, 208, 156, 43, 60)]
class NavigationStoppedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(4027678171, 4858, 19853, 139, 38, 179, 131, 208, 156, 43, 60)]
public delegate void NavigationStoppedEventHandler(object sender, NavigationEventArgs e);
Public Delegate Sub NavigationStoppedEventHandler(sender As Object, e As NavigationEventArgs)

Parameters

sender
Object

Platform::Object

IInspectable

The object where the handler is attached.

e
NavigationEventArgs

Event data for the event.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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();
}

Applies to