如何在Mahapps中使用默认WPF动画

如何在Mahapps中使用默认WPF动画,wpf,animation,mahapps.metro,doubleanimation,Wpf,Animation,Mahapps.metro,Doubleanimation,每次添加或排序项目时,我都会使用Mahapps为列表框项目设置动画 <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:1" /> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" DecelerationRatio="0.8">

每次添加或排序项目时,我都会使用Mahapps为列表框项目设置动画

    <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:1" />
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" DecelerationRatio="0.8">
     <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
     <EasingDoubleKeyFrame KeyTime="0:0:.5" Value="25"/>
</DoubleAnimationUsingKeyFrames>

动画从高度为0的控件顶部开始,然后将其展开到底部,并展开位于该控件后面的所有项目。问题是当使用Mahapps时,动画从控件的中间开始,然后扩展到顶部和底部。我想使用Mahapps库的默认动画设置

我试图使用默认系统库中的DoubleAnimation,但似乎我也有同样的问题

多谢各位