Exemple #1
0
        public MapControl()
        {
            this.InitializeComponent();

            this.userLocationIcon = new UserLocationIcon();

            // Setting MapCenter to null will center the map to Puget Sound and set the default Zoom level.
            this.MapCenter = null;

            map.ViewChangeEnded += OnMapViewChangeEnded;
            this.uiHelper        = new DefaultUIHelper(this.Dispatcher);
        }
        public MapControl()
        {
            this.InitializeComponent();

            this.userLocationIcon = new UserLocationIcon();

            // Setting MapCenter to null will center the map to Puget Sound and set the default Zoom level.
            this.MapCenter = null;

            map.ViewChangeEnded += OnMapViewChangeEnded;
            this.uiHelper = new DefaultUIHelper(this.Dispatcher);

            this.hasShownOhMyDialog = ApplicationData.Current.LocalSettings.Values.ContainsKey(UtilitiesConstants.OH_MY_KEY);
        }
        public MapControl()
        {
            this.InitializeComponent();

            this.userLocationIcon = new UserLocationIcon();

            // Setting MapCenter to null will center the map to Puget Sound and set the default Zoom level.
            this.MapCenter = null;

            map.ViewChangeEnded += OnMapViewChangeEnded;
            this.uiHelper = new DefaultUIHelper(this.Dispatcher);
        }