WPF rotate an loading image for gif effect

前端 未结 2 1632
感动是毒
感动是毒 2020-12-22 12:28

I have a static loader image in wpf, I can easily use it as a loading gif by using WPFAnimatedGIF nuget package, but it seems like an overkill.

There is only one sce

2条回答
  •  难免孤独
    2020-12-22 12:48

    I know that this question already has an answer, but there is a different approach. Just use ProgressBar and set IsIndeterminate to True:

    
    

    The style is from Material Design In XAML Toolkit. There is no need to use GIFs as busy indicators, I made the same mistake some time ago

提交回复
热议问题