private void DisplayRanking(object sender, RoutedEventArgs e) { Menu actualMenu = App.Current.Windows.OfType <Menu>().FirstOrDefault(); actualMenu.EnableNavigation(); RankingManager.AddRankingPetitionCallback(); }