WPF loading spinner

后端 未结 14 863
我寻月下人不归
我寻月下人不归 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

    In WPF, you can now simply do:

    Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; // set the cursor to loading spinner
    
    Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow; // set the cursor back to arrow
    

提交回复
热议问题