我是新來使用WPF故事板,這裏是我的代碼:WPF故事板事件綁定
<StackPanel>
<Border Grid.Row="0" Background="Black" Height="40" Name="Border1"></Border>
<Grid Height="0" Name="MyGrid" Background="Green">
<Grid.Triggers>
<EventTrigger RoutedEvent="UserControl.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="MyGrid"
Storyboard.TargetProperty="Height" From="0" To="40"
Duration="0:0:1" BeginTime="0:0:0"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Grid.Triggers>
</Grid>
</StackPanel>
我想改變觸發故事板開始Border1.MouseEnter事件。
這可能嗎?
感謝名單
哇,不敢相信我沒想到!但就像我說的那是我第一次嘗試。感謝名單! –