EventTrigger RoutedEvent in wpf xaml

Posted by Cinaird on Stack Overflow See other posts from Stack Overflow or by Cinaird
Published on 2010-05-06T11:04:04Z Indexed on 2010/05/06 11:08 UTC
Read the original article Hit count: 1058

Filed under:
|
|
|
|

I have a problem in wpf xaml and i'm pretty new on this so it may be something basic

i want to rotate a ellipse 360 degree

<Ellipse Name="test" Fill="Black" StrokeThickness="5" Margin="0,0,0,0" Height="66">
        <Ellipse.Triggers>
            <EventTrigger RoutedEvent="Ellipse.Loaded" SourceName="test">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation
                        Storyboard.TargetName="test"
                        Storyboard.TargetProperty="(Ellipse.RenderTransform).(RotateTransform.Angle)"
                        From="0"
                        To="360"
                        Duration="0:0:0.5"
                        RepeatBehavior="1x" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Ellipse.Triggers>
    </Ellipse>

But nothing happens, what is wrong?

© Stack Overflow or respective owner

Related posts about xaml

Related posts about wpf