示例#1
0
        public static ContentPage CreateAndStash()
        {
            var mainContent = new MapContent();

            Stash = mainContent;
            return(mainContent.Content);
        }
示例#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!
        }