• Nuget으로 패키지 설치
Install-Package LoadingIndicators.WPF -Version 0.0.1

  • app.xaml에 리소스 추가
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Styles/LoadingWave.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Styles/LoadingThreeDots.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Styles/LoadingFlipPlane.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Styles/LoadingPulse.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Styles/LoadingDoubleBounce.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Colors.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/Styles.xaml"/>
        </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
</Application.Resources>

  • 사용법
<Window x:Class="WpfApp3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp3"
        xmlns:li="clr-namespace:LoadingIndicators.WPF;assembly=LoadingIndicators.WPF"
        mc:Ignorable="d"
        Title="MainWindow" Height="170" Width="900">

<li:LoadingIndicator Name="ArcsStyle" 
                     SpeedRatio="1" 
                     IsActive="True" 
                     Style="{DynamicResource LoadingIndicatorArcsStyle}" />

<li:LoadingIndicator Name="ArcsRing" 
                     IsActive="True"
                     SpeedRatio="1"
                     Style="{DynamicResource LoadingIndicatorArcsRingStyle}" />

<li:LoadingIndicator Name="DoubleBounce"
                     SpeedRatio="1"
                     IsActive="True" 
                     Style="{DynamicResource LoadingIndicatorDoubleBounceStyle}" />

<li:LoadingIndicator Name="FlipPlane" 
                     SpeedRatio="1"
                     IsActive="True"
                     Style="{DynamicResource LoadingIndicatorFlipPlaneStyle}" />

<li:LoadingIndicator Name="Pulse" 
                     SpeedRatio="1" 
                     IsActive="True"
                     Style="{DynamicResource LoadingIndicatorPulseStyle}" />

<li:LoadingIndicator Name="Ring"
                     SpeedRatio="1"
                     IsActive="True"
                     Style="{DynamicResource LoadingIndicatorRingStyle}" />

<li:LoadingIndicator Name="ThreeDots" 
                     SpeedRatio="1"
                     IsActive="True" 
                     Style="{DynamicResource LoadingIndicatorThreeDotsStyle}" />

<li:LoadingIndicator Name="Wave" 
                     SpeedRatio="1"
                     IsActive="True" 
                     Style="{DynamicResource LoadingIndicatorWaveStyle}" />

image

카테고리:

업데이트:

댓글남기기