■ EventTrigger 엘리먼트 사용하기

----------------------------------------------------------------------------------------------------

<Canvas.Triggers>

    <EventTrigger RoutedEvent="Canvas.Loaded">

        <BeginStoryboard>

            <Storyboard SpeedRatio="0.5">

                <DoubleAnimation

                    Storyboard.TargetName="rotateTransform"

                    Storyboard.TargetProperty="Angle"

                    RepeatBehavior="Forever"

                    Duration="0:0:1"

                    From="0"

                    To="360" />

            </Storyboard>

        </BeginStoryboard>

    </EventTrigger>

</Canvas.Triggers>

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요