Beispiel #1
0
        private void OnsItemSelected(ItemClickEventArgs args)
        {
            var selected = args.ClickedItem as SampleImage;

            ImagesNavigationHelper.AddImageId(ImageGalleryViewSelectedIdKey, selected.ID);
            NavigationService.Frame.SetListDataItemForNextConnectedAnimation(selected);
        }
        private void ImagesGridView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var selected = e.ClickedItem as SampleImage;

            ImagesNavigationHelper.AddImageId(ImageGallerySelectedIdKey, selected.ID);
            NavigationService.Frame.SetListDataItemForNextConnectedAnimation(selected);
            NavigationService.Navigate <ImageGalleryDetailPage>(selected.ID);
        }
Beispiel #3
0
 public void OnImageSelected(SampleImage image)
 {
     ImagesNavigationHelper.AddImageId(ImageGalleryViewSelectedIdKey, image.ID);
     _connectedAnimationService.SetListDataItemForNextConnectedAnnimation(image);
     _navigationService.For <ImageGalleryViewDetailViewModel>()
     .WithParam(v => v.ID, image.ID)
     .Navigate();
 }
        private void ImagesGridView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var selected = e.ClickedItem as MediaFileViewModel;

            ImagesNavigationHelper.AddImageId(ImageGallerySelectedIdKey, selected.FileName);
            NavigationService.Frame.SetListDataItemForNextConnectedAnimation(selected);
            NavigationService.Navigate <ImageGalleryDetailPage>(new object[] { selected.FileName, MasterMenuItem.StepNumber - 1 });
        }
Beispiel #5
0
 public void OnImageSelected(SampleImage image)
 {
     _imagesGridView.PrepareConnectedAnimation(ImageGalleryViewAnimationOpen, image, "galleryImage");
     ImagesNavigationHelper.AddImageId(ImageGalleryViewSelectedIdKey, image.ID);
     _navigationService.For <ImageGalleryViewDetailViewModel>()
     .WithParam(v => v.ID, image.ID)
     .Navigate();
 }
Beispiel #6
0
        private void OnItemSelected(ItemClickEventArgs args)
        {
            var selected = args.ClickedItem as SampleImage;

            ImagesNavigationHelper.AddImageId(ImageGalleryViewSelectedIdKey, selected.ID);
            _connectedAnimationService.SetListDataItemForNextConnectedAnimation(selected);
            _navigationService.Navigate(PageTokens.ImageGalleryViewDetailPage, selected.ID);
        }
Beispiel #7
0
 private void NavToFullScreen(Photo selected)
 {
     if (selected != null)
     {
         ImagesNavigationHelper.AddImageId(ImageDataService.GallerySelectedIdKey, selected.id);
         NavigationService.Frame.SetListDataItemForNextConnectedAnimation(selected);
         NavigationService.Navigate <GalleryDetailPage>(selected.id);
     }
 }
Beispiel #8
0
        private void MyMap_MapElementClick(MapControl sender, MapElementClickEventArgs args)
        {
            MapIcon myClickedIcon = args.MapElements.FirstOrDefault(x => x is MapIcon) as MapIcon;

            if (myClickedIcon != null)
            {
                var posClicked = myClickedIcon.Location.Position;
                var c_p        = CamPoints.Where(c => c.BasicGeoPos.Equals(posClicked)).FirstOrDefault();


                if (c_p != null)
                {
                    ImagesNavigationHelper.AddImageId("ImageGallerySelectedIdKey", c_p.ID);
                    NavigationService.Frame.SetListDataItemForNextConnectedAnimation(c_p);
                    NavigationService.Navigate <ImageGalleryDetailPage>(c_p.ID);
                }
            }
        }