0
我試圖在圖像啓用時在其樣式中旋轉我的圖像。它會拋出一個錯誤:內部樣式觸發器的StoryBoard
Cannot resolve all property references in the property path 'Angle'. Verify that applicable objects support the properties.
任何人有任何線索是什麼問題在這裏?
<Image x:Name="Logo" Source="Resources/Logo.png" RenderTransformOrigin=".5,.5">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Angle" By="10" To="360" RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
我試過Storyboard.TargetProperty =「Image.Angle」,但結果相同。
完美的感覺和作品的魅力,謝謝! – Bastiaan