Esempio n. 1
0
        private void ListControl_OnClickItemStarted(UnsplashImageBase img, FrameworkElement container)
        {
            _clickedContainer = container;
            _clickedImg       = img;

            DetailControl.Visibility = Visibility.Visible;
            if (DetailControl.ActualHeight == 0)
            {
                _waitForToggleDetailAnimation = true;
            }
            else
            {
                _waitForToggleDetailAnimation = false;
                ToggleDetailControlAnimation();
            }
        }
Esempio n. 2
0
        private void TapItem(UnsplashImageBase image)
        {
            if (string.IsNullOrEmpty(image.ListImageBitmap.LocalPath))
            {
                return;
            }

            var container = ImageGridView.ContainerFromItem(image) as FrameworkElement;
            var rootGrid  = (container as GridViewItem).ContentTemplateRoot as Grid;

            Canvas.SetZIndex(container, ++_zindex);

            _containerVisual = ElementCompositionPreview.GetElementVisual(container);

            var maskBorder = rootGrid.Children[2] as FrameworkElement;
            var img        = rootGrid.Children[1] as FrameworkElement;

            ToggleItemPointAnimation(maskBorder, img, false);

            OnClickItemStarted?.Invoke(image, container);
        }
 private bool checkListImageDownloaded(UnsplashImageBase image)
 {
     return(!string.IsNullOrEmpty(image.ListImageBitmap.LocalPath));
 }