Exemplo n.º 1
0
		public MapViewModel(Distributeurs dist)
		{
			itemDistributeur = dist;
			itemGeoPoint =
				new Geopoint(new BasicGeoposition()
				{
					Latitude = dist.Geometry.Coordonnees[1],
					Longitude = dist.Geometry.Coordonnees[0]
				});
		}
        public void OpenMapWindow(Distributeurs obj)
        {
            Window window = Window.Current;

            if (window != null)
            {
                Frame frame = window.Content as Frame;

                if (frame != null)
                {
                    frame.Navigate(typeof(Map), obj);
                }
            }
        }