private async void InfoPlaceHolderGrid_ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
 {
     Events.LogDragToDismiss();
     ToggleExifInfo(false);
     PhotoSV.ChangeView(null, 0, null);
     await HideInternalAsync();
 }
        public void Hide()
        {
            if (_animating)
            {
                return;
            }

            _animating = true;

            MaskBorder.IsHitTestVisible = false;

            PhotoSV.ChangeView(null, 0, null);

            ToggleSetAsSP(false);

            DismissPreview();
            TogglePreviewButtonAnimation(false);

            ToggleFlipperControlAnimation(false);
            ToggleShareBtnAnimation(false);

            var batch = _compositor.CreateScopedBatch(CompositionBatchTypes.Animation);

            ToggleInfoGridAnimation(false);
            batch.Completed += async(s, ex) =>
            {
                await HideInternalAsync();
            };
            batch.End();
        }
        private void ResetVisualInitState()
        {
            _infoGridVisual.Offset            = new Vector3(0f, -100f, 0);
            _downloadBtnVisual.Offset         = new Vector3(100f, 0f, 0f);
            _shareBtnVisual.Offset            = new Vector3(150f, 0f, 0f);
            _detailGridVisual.Opacity         = 0;
            _okVisual.Offset                  = new Vector3(100f, 0f, 0f);
            _downloadingHintGridVisual.Offset = new Vector3(100f, 0f, 0f);

            PhotoSV.ChangeView(null, 0, null);
            StartLoadingAnimation();
        }
Beispiel #4
0
        private void ResetVisualInitState()
        {
            _infoGridVisual.Offset         = new Vector3(0f, -100f, 0);
            _shareBtnVisual.Offset         = new Vector3(150f, 0f, 0f);
            _flipperVisual.Offset          = new Vector3(170f, 0f, 0f);
            _detailGridVisual.Opacity      = 0;
            _taskbarImageVisual.Opacity    = 0;
            _lockScreenImageVisual.Opacity = 0;
            _previewBtnVisual.Opacity      = 1;
            _setAsSPVisual.Opacity         = 0;
            _setAsSPVisual.Offset          = new Vector3(0f, 150f, 0f);
            _exifInfoVisual.Offset         = new Vector3(0f, 200f, 0f);

            PhotoSV.ChangeView(null, 0, null);
            StartLoadingAnimation();
        }
        public void Hide()
        {
            PhotoSV.ChangeView(null, 0, null);

            ToggleSetAsSP(false);

            DismissPreview();
            TogglePreviewButtonAnimation(false);

            ToggleFlipperControlAnimation(false);
            ToggleShareBtnAnimation(false);

            var batch = _compositor.CreateScopedBatch(CompositionBatchTypes.Animation);

            ToggleInfoGridAnimation(false);
            batch.Completed += async(s, ex) =>
            {
                await DoHideListAsync();
            };
            batch.End();
        }
 private async void InfoPlaceHolderGrid_ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
 {
     ToggleExifInfo(false);
     PhotoSV.ChangeView(null, 0, null);
     await DoHideListAsync();
 }