public static ContentPage CreateAndStash() { var mainContent = new MapContent(); Stash = mainContent; return(mainContent.Content); }
public TaMap() : base(MapContent.CreateAndStash()) { _mapContent = MapContent.Stash; _mapContent.FavoritesButton.Clicked += OnFavoriteSwap; _mapContent.SettingsButton.Clicked += OnSettingsSwap; _mapContent.UpdateThread = new Thread(UpdateBusLocationsThread); _mapContent.UpdateThread.Start(); SetHasNavigationBar(_mapContent.Content, false); // This has to be set twice! }