첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

■ ImageAwesome 엘리먼트의 Spin/SpinDuration 속성을 사용해 아이콘을 회전시키는 방법을 보여준다.

TestProject.zip
0.01MB

▶ 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"
    xmlns:fa="http://schemas.fontawesome.io/icons/"
    Width="800"
    Height="600"
    Title="ImageAwesome 엘리먼트 : Spin/SpinDuration 속성을 사용해 아이콘 회전시키기"
    FontFamily="나눔고딕코딩"
    FontSize="16">
    <Grid>
        <StackPanel
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Orientation="Horizontal">
            <fa:ImageAwesome
                Margin="10"
                Width="48"
                Height="48"
                Spin="True"
                SpinDuration="4"
                Icon="CircleOutlineNotch" />
            <fa:ImageAwesome
                Margin="10"
                Width="48"
                Height="48"
                Spin="True"
                SpinDuration="8"
                Icon="Refresh" />
            <fa:ImageAwesome
                Margin="10"
                Width="48"
                Height="48"
                Spin="True"
                SpinDuration="16"
                Icon="Cog" />
        </StackPanel>
    </Grid>
</Window>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요