Ejemplo n.º 1
0
        public MainPage()
        {
            //BingMapsTileLayer.ApiKey = "...";

            InitializeComponent();

            DataContext = new ViewModel(Dispatcher);
            NavigationCacheMode = NavigationCacheMode.Required;
        }
Ejemplo n.º 2
0
        public MainPage()
        {
            TileImageLoader.Cache = new ImageFileCache();

            InitializeComponent();

            var tileLayers = (TileLayerCollection)Resources["TileLayers"];
            map.TileLayer = tileLayers[0];

            DataContext = new ViewModel(Dispatcher);
            NavigationCacheMode = NavigationCacheMode.Required;
        }