WPF loading spinner

后端 未结 14 838
我寻月下人不归
我寻月下人不归 2020-12-02 05:30

The goal is to display the information that the application is working. So I\'m looking for an intelligent implementation sample of a loading spinner using WPF / MVVM.

14条回答
  •  遥遥无期
    2020-12-02 06:22

    A very simple "plug and play" spinner could be one of the spinning icons from the Font Awesome Wpf Package (Spinning icons).

    The usage is quite simple, just install the nuget package:

    PM> Install-Package FontAwesome.WPF
    

    Then add the reference to the namespace

    xmlns:fa="http://schemas.fontawesome.io/icons/"
    

    and use the ImageAwesome control. Set the Spin="True" property and select one of the "Spinner", "Refresh", "Cog" and "CircleOutlinedNotched" Icon. It's scalable and can be resized by setting width and height.

    
        
            
        
    
    

提交回复
热议问题