예제 #1
0
        private void ToggleDetailControlAnimation()
        {
            DetailControl.CurrentImage = _clickedImg;
            DetailControl.Show(_clickedContainer);

            NavigationService.AddOperation(() =>
            {
                DetailControl.Hide();
                return(true);
            });
        }
예제 #2
0
        private void ToggleDetailControlAnimation()
        {
            DetailControl.CurrentImage = _clickedImg;
            DetailControl.Show(_clickedContainer);

            var key = (string)App.Current.Resources["GestureKey"];

            if (!LocalSettingHelper.HasValue(key))
            {
                ToggleGestureTipsControlAnimation(true, 500);
            }

            NavigationService.AddOperation(() =>
            {
                DetailControl.Hide();
                return(true);
            });
        }
예제 #3
0
        private void ToggleDetailControlAnimation()
        {
            var position  = DetailControl.GetTargetPosition();
            var titleRect = TitleStack.TransformToVisual(Window.Current.Content)
                            .TransformBounds(new Rect(0, 0, TitleStack.ActualWidth, TitleStack.ActualHeight));
            var clickedItemRect = _clickedContainer.TransformToVisual(Window.Current.Content)
                                  .TransformBounds(new Rect(0, 0, _clickedContainer.ActualWidth, _clickedContainer.ActualHeight));

            titleRect.Intersect(clickedItemRect);
            if (!titleRect.IsEmpty)
            {
                _restoreTitleStackStatus = true;
                ToggleTitleStackAnimation(false);
            }

            DetailControl.CurrentImage = _clickedImg;
            DetailControl.Show(_clickedContainer);

            NavigationService.AddOperation(() =>
            {
                DetailControl.Hide();
                return(true);
            });
        }