Esempio n. 1
0
        public static ContentPage CreateAndStash()
        {
            var mainContent = new MapContent();

            Stash = mainContent;
            return(mainContent.Content);
        }
Esempio n. 2
0
        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!
        }