NavigationView.BackRequested Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the back button receives an interaction such as a click or tap.
Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationView.BackRequested (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
// Register
event_token BackRequested(TypedEventHandler<NavigationView, NavigationViewBackRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void BackRequested(event_token const* cookie) const;
// Revoke with event_revoker
NavigationView::BackRequested_revoker BackRequested(auto_revoke_t, TypedEventHandler<NavigationView, NavigationViewBackRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<NavigationView,NavigationViewBackRequestedEventArgs> BackRequested;
function onBackRequested(eventArgs) { /* Your code */ }
navigationView.addEventListener("backrequested", onBackRequested);
navigationView.removeEventListener("backrequested", onBackRequested);
- or -
navigationView.onbackrequested = onBackRequested;
Public Custom Event BackRequested As TypedEventHandler(Of NavigationView, NavigationViewBackRequestedEventArgs)
<NavigationView BackRequested="eventhandler" />
Event Type
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Applies to
See also
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla