Compartilhar via


NavigationStoppedEventHandler Delegar

Definição

Fornece dados de evento para o 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

O objeto em que o manipulador está anexado.

e
NavigationEventArgs

Os dados de evento do evento.

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v1.0)

Exemplos

O exemplo de código a seguir demonstra o uso do 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();
}

Aplica-se a