谁能向我解释为什么这不起作用?我希望它从左侧滑入并从右侧滑入。它们似乎都是从左边滑动,而不是从最左边或最右边开始。
前:
<Storyboard x:Key="SlideInFromLeft" >
<ThicknessAnimation Duration="0:0:.75" Storyboard.TargetProperty="Margin" From="500,0,-500,0" To="0" DecelerationRatio=".9" />
</Storyboard>
<Storyboard x:Key="SlideInFromRight">
<ThicknessAnimation Duration="0:0:.5" Storyboard.TargetProperty="Margin" From="0" To="-500,0,500,0" AccelerationRatio=".3"/>
</Storyboard>
后:
<Storyboard x:Key="SlideInFromLeft" >
<ThicknessAnimation Duration="0:0:.75" Storyboard.TargetProperty="Margin" From="1000,0,-1000,0" To="0" DecelerationRatio=".9" />
</Storyboard>
<Storyboard x:Key="SlideInFromRight">
<ThicknessAnimation Duration="0:0:.5" Storyboard.TargetProperty="Margin" From="0" To="-1000,0,1000,0" AccelerationRatio=".3"/>
</Storyboard>