private async void ExecuteCollapseAnimation() { OffsetYAnimation.From = 0; OffsetYAnimation.To = -(_clip.Height); OffsetYAnimationStoryboard.Begin(); await Task.Delay(250); FoldableContainerParent.Clip = null; FoldableContainerParent.Visibility = Visibility.Collapsed; }
private void ExecuteExpandAnimation() { OffsetYAnimation.From = -(_clip.Height); OffsetYAnimation.To = 0; FoldableContainerParent.Visibility = Visibility.Visible; FoldableContainerParent.Clip = new RectangleGeometry() { Rect = _clip }; OffsetYAnimationStoryboard.Begin(); }