Example #1
0
        public PhotoViewModel(Photo photo)
        {
            SearchRequestId = photo.SearchRequestId;
            Id = photo.Id;
            Title = photo.Title;
            Description = photo.Description;
            ThumbnailUrl = photo.ThumbnailUrl;
            ImageUrl = photo.ImageUrl;

            if (photo.Location != null)
                Location = new MapLocationViewModel(photo.Location, Title);
        }
Example #2
0
 public LocationPageViewModel()
 {
     if (IsInDesignMode)
     {
         PointOfInterest = new MapLocationViewModel
         {
             Label = "ZALANDO Neue Bahnhofstraße 11, 10245 Berlin, Germany",
             Location = new Geopoint(new BasicGeoposition
             {
                 Latitude = 52.506984,
                 Longitude = 13.471250
             })
         };
     }
 }