Exemple #1
0
        private async void OnObjectTapped(MapPhoto sender, Object context)
        {
            var photo = (Photo)context;

            if (photo != null)
            {
                var pictureView = new PictureViewContent(sender.GetImageControl(), photo.Preview, photo);
                await pictureView.ShowAsync();
            }
        }
Exemple #2
0
        private async void OnItemClicked(Object sender, ItemClickEventArgs args)
        {
            var photo     = (Photo)args.ClickedItem;
            var container = (Controls.Image)((ContentControl)((GridView)sender).ContainerFromItem(photo)).ContentTemplateRoot;

            if (photo != null)
            {
                var pictureView = new PictureViewContent(container, photo.LargePreview, photo);
                await pictureView.ShowAsync();
            }
        }