不管我怎麼改變我不能讓旋轉基於毫秒的延遲。我想讓它每個橢圓稍微延遲一點。您應該能夠在下面的圖像中看到3個橢圓對象,但它們都相互重疊。有人可以幫助我得到這個工作,無論它是否與故事板鍵,無論它可能。謝謝。延遲WPF動畫旋轉
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="100" Width="100">
<Grid>
<!--Circles Animated-->
<Canvas x:Name="LoadingObject" VerticalAlignment="Top" Height="20" Width="20" Background="LightGray">
<Ellipse Height="4" Width="4" Fill="Red" RenderTransformOrigin=".5,2.5">
<Ellipse.RenderTransform>
<RotateTransform/>
</Ellipse.RenderTransform>
<Ellipse.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.(RotateTransform.Angle)"
From="0" To="-360" Duration="0:0:1" RepeatBehavior="Forever">
<DoubleAnimation.EasingFunction>
<QuadraticEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Ellipse.Triggers>
</Ellipse>
<Ellipse Height="4" Width="4" Fill="Blue" RenderTransformOrigin=".5,2.5">
<Ellipse.RenderTransform>
<RotateTransform/>
</Ellipse.RenderTransform>
<Ellipse.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.(RotateTransform.Angle)"
From="0" To="-360" Duration="0:0:1" BeginTime="0:0:03" RepeatBehavior="Forever">
<DoubleAnimation.EasingFunction>
<QuadraticEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Ellipse.Triggers>
</Ellipse>
<Ellipse Height="4" Width="4" Fill="Blue" RenderTransformOrigin=".5,2.5">
<Ellipse.RenderTransform>
<RotateTransform/>
</Ellipse.RenderTransform>
<Ellipse.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.(RotateTransform.Angle)"
From="0" To="-360" Duration="0:0:1" BeginTime="0:0:06" RepeatBehavior="Forever">
<DoubleAnimation.EasingFunction>
<QuadraticEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Ellipse.Triggers>
</Ellipse>
</Canvas>
</Grid>
</Window>
你嘗試這是一個故事板3個雙人動畫和關鍵幀?可能會更好地工作 – BradleyDotNET
你能演示如何做到這一點?我不太熟悉如何做到這一點。我將不勝感激 – JokerMartini
我很樂意。可能需要一段時間(甚至是明天),但我會鼓起來一個答案:) – BradleyDotNET