0

谁能向我解释为什么这不起作用?我希望它从左侧滑入并从右侧滑入。它们似乎都是从左边滑动,而不是从最左边或最右边开始。

前:

<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>
4

1 回答 1

0

在弄乱了from和to之后,我想我已经弄清楚了。看看之前和之后。

于 2012-08-23T13:12:39.460 回答