// Naviguer vers une Frame spécifique. (Si ce n'est pas une app, on reinitialise la position à 0) public static void GoTo(Frame destination, bool isApp = false) { if (destination != Window.Current.Content) { if (!isApp) { AppPosition = 0; } Window.Current.Content = destination; Window.Current.Activate(); NavigatedEvent?.Invoke(GetCurrentPage()); } }
set => AddHandler(NavigatedEvent, value);