ふらっとVisual C#,C♯,C#(初心者用) Part94
■ このスレッドは過去ログ倉庫に格納されています
0263デフォルトの名無しさん
2012/06/01(金) 16:36:21.54マウスを重ねた時ではなく、スクリプトからこのアニメーションを開始させたいのですが
.csで、どのように書けば実現できますか?
<Window x:Class="test3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Ellipse Name="ellipse2" Width="50" Height="100" Fill="Blue">
<Ellipse.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard TargetProperty="Opacity">
<DoubleAnimation Duration="0:0:1" From="0.8" To="0.3" AutoReverse="False" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Ellipse.Triggers>
</Ellipse>
</Grid>
</Window>
■ このスレッドは過去ログ倉庫に格納されています