当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - How to show rotating image if the some process is running in wpf

问题描述:

I want to show rotaing image when I click on tab. The tab content is some ui which takes some time to load. I want to show that rotating image for that period of time. Is there a way to do that?

Actually I have tabcontrol. When I clicked on tab, its content get loaded i.e. some operation like fetching the data and loading the ui. But this takes some time to load. I want to show the some image for that period of time. Here the I tried one rotating image but that image is not rotating when tab content is loading. After the tab content gets loaded, the image rotates properly.

I want to rotate that image when the tab content is loading only that period of time.

Please help

网友答案:

Take a look at this post. It sounds similar.

Show animation till an operation completes wpf

Here is some information on how to do a rotation: http://www.codeproject.com/KB/WPF/TransformationsIntro.aspx

分享给朋友:
您可能感兴趣的文章:
随机阅读: