當前我有一個Image
,它在加載時發出脈衝。當我更改圖像的可見性時,我希望激活故事板。但我看到Image.Triggers
必須是EventTriggers
。激活故事板的可見性已更改
我需要掛鉤哪個事件?
<Image.Triggers>
<EventTrigger RoutedEvent="Image.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MandateErrorImage"
Storyboard.TargetProperty="Opacity"
From="1.0" To="0.1" Duration="0:0:0.5"
AutoReverse="True" RepeatBehavior="0:0:2" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Image.Triggers>
頂端問題。我也需要這個答案。無法在互聯網上的任何地方找到它 – liquidsnake786