예제 #1
0
        private async void ExecuteCollapseAnimation()
        {
            OffsetYAnimation.From = 0;
            OffsetYAnimation.To   = -(_clip.Height);
            OffsetYAnimationStoryboard.Begin();
            await Task.Delay(250);

            FoldableContainerParent.Clip       = null;
            FoldableContainerParent.Visibility = Visibility.Collapsed;
        }
예제 #2
0
        private void ExecuteExpandAnimation()
        {
            OffsetYAnimation.From = -(_clip.Height);
            OffsetYAnimation.To   = 0;

            FoldableContainerParent.Visibility = Visibility.Visible;
            FoldableContainerParent.Clip       = new RectangleGeometry()
            {
                Rect = _clip
            };
            OffsetYAnimationStoryboard.Begin();
        }