0
我試圖在點擊一個按鈕後做出矩形動畫。wpf按鈕故事板觸發器
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
<Button Content="FirstButton" HorizontalAlignment="Left" Height="60" Margin="341,91,0,0" VerticalAlignment="Top" Width="91">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
??? <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
我需要寫什麼?
我相信你需要把'BeginStoryboard'元素放在一個'i:EventTrigger.EnterActions'元素中。 –