첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
유용한 소스 코드가 있으면 icodebroker@naver.com으로 보내주시면 감사합니다.
블로그 자료는 자유롭게 사용하세요.

■ DoubleAnimation 엘리먼트 : EasingFunction 속성에서 CircleEase 객체 사용하기

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


TestProject.zip



MainWindow.xaml

 

 

<Window x:Class="TestProject.MainWindow"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Width="800"

    Height="600"

    Title="DoubleAnimation 엘리먼트 : EasingFunction 속성에서 CircleEase 객체 사용하기"

    FontFamily="나눔고딕코딩"

    FontSize="16">

    <StackPanel Margin="10">

        <Rectangle Name="rectangle"

            Width="200"

            Height="30"

            Fill="Blue">

            <Rectangle.Triggers>

                <EventTrigger RoutedEvent="Rectangle.MouseDown">

                    <BeginStoryboard>

                        <Storyboard>

                            <DoubleAnimation

                                Storyboard.TargetName="rectangle"

                                Storyboard.TargetProperty="Height"

                                From="30"

                                To="400"

                                Duration="00:00:3">

                                <DoubleAnimation.EasingFunction>

                                    <CircleEase EasingMode="EaseOut" />

                                </DoubleAnimation.EasingFunction>

                            </DoubleAnimation>

                        </Storyboard>

                    </BeginStoryboard>

                </EventTrigger>

            </Rectangle.Triggers>

        </Rectangle>

    </StackPanel>

</Window>

 

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

Posted by 사용자 icodebroker

댓글을 달아 주세요