3
如何將這段XAML代碼轉換爲C#中的代碼隱藏作爲我的動態和動態更改值?如何將XAML代碼的動畫轉換爲C#
XAML
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation BeginTime="00:00:00"
From="200"
To="500"
Storyboard.TargetProperty="(Window.Top)"
AccelerationRatio=".1"
Duration="0:0:.2" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Window.Triggers>
+1:它比我的要短得多。 –