private void NavigateToMap() { Frame rootFrame = Window.Current.Content as Frame; if (rootFrame.Content != null) { rootFrame.Navigate(typeof(MapBus), null); } } #endregion