Compartir a través de


NavigationStoppedEventHandler Delegado

Definición

Proporciona datos de eventos para el evento NavigationStopped .

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)

Parámetros

sender
Object

Platform::Object

IInspectable

Objeto donde se adjunta el controlador.

e
NavigationEventArgs

Datos del evento.

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 (se introdujo en la versión 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v1.0)

Ejemplos

En el ejemplo de código siguiente se muestra el uso del evento NavigationStopped .

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

Se aplica a