private void bTraffic_Click(object sender, RoutedEventArgs e) { Frame rootFrame = Window.Current.Content as Frame; if (rootFrame.Content != null) { rootFrame.Navigate(typeof(TrafficAthens), null); } } }