0

在我的主页上,我有

<DoubleAnimation Completed="DoubleAnimation_Completed_1" 
            Storyboard.TargetName="factImage"
            Storyboard.TargetProperty="Opacity"
            From="0.0" To="1.0" Duration="0:0:0.3"
            AutoReverse="False"/>

我不想硬编码Duration="0:0:0.3",而是想将其绑定到设置页面上的滑块。

4

1 回答 1

0

您可以使用两个页面都使用的 ViewModel。

例如,您可以拥有一个带有Duration属性的 ViewModel,该属性由Settings页面通过绑定设置,但随后也绑定到您的动画MaingPage

于 2013-07-22T21:07:40.117 回答