WPF loading載入動畫庫

weixin_34391854發表於2018-09-22
原文:WPF loading載入動畫庫

1. 下載Dll

       https://pan.baidu.com/s/1wKgv5_Q8phWo5CrXWlB9dA

2.在專案中新增引用

        略

3.在Xaml中引入名稱空間

      xmlns:myLib="clr-namespace:MyLoadingLib;assembly=MyLoadingLib"

4.使用程式碼

     <StackPanel>
     <myLib:CirclePointRingLoading Width="40" Height="40" IsActive="True" IsLarge="False" Foreground="#3ca9fe"/>
                    <TextBlock Foreground="#787978" FontSize="13" Text="正在檢測新版本..."  Padding="10,15,0,0"/>
                    <myLib:HorizontalPoingLoading FillBrush="#3ca9fe" EllipseDiameter="10"/>
                    <myLib:ThreePoingLoading Foreground="#3ca9fe" Margin="0,20,0,0" />
                    <myLib:TwoPointLoading EllipseWidth="16" Foreground="#3ca9fe" />
                    <myLib:OnePointLoading Foreground="#3ca9fe" Margin="5"/>
                    <myLib:RadnerLoading Foreground="#1ab394"/>
                   
                    <myLib:GridLoading Foreground="#3ca9fe" />
                    <myLib:FiveColumnLoading Foreground="#3ca9fe" />
                    <myLib:IconLoading Foreground="#3ca9fe" IconSize="30" Icon="&#xe62e;"/>
                    <myLib:IconLoading Foreground="#3ca9fe" IconSize="30" Icon="&#xe623;"/>
                    <myLib:IconLoading Foreground="#3ca9fe" IconSize="30" Icon="&#xe770;"/>

    </StackPanel>    


5.    效果


雖然不是那麼的全面 ,希望能幫助到更多的朋友



相關文章