C# WPF 中的 Metro 风格进度条

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10923226/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 15:46:01  来源:igfitidea点击:

Metro Styled Progress Bar in WPF

c#devexpressprogress-barmicrosoft-metro

提问by SeToY

Is there any way to create a Windows 8 ProgressBar in WPF?

有没有办法在 WPF 中创建 Windows 8 ProgressBar?

I don't mean the turning circle, I mean the one animatedlike that (with blue dots):

我不是指转动圈,我指的是像那样动画的那个(带有蓝点):

http://blog.humann.info/image.axd?picture=2012%2f3%2fanimated_loader.gif

http://blog.humann.info/image.axd?picture=2012%2f3%2fanimated_loader.gif

采纳答案by Gergely Orosz

This control is implemented in the open source MahApps.Metrocontrols collection as the MetroProgressBarcontrol.

此控件在开源MahApps.Metro控件集合中作为MetroProgressBar控件实现。

Another - slightly different - loading control in this library that might interest you is the ProgressRing.

该库中另一个您可能感兴趣的加载控件是ProgressRing

回答by Hossein Safa

Just add IsIndeterminate="True" property to your progressbar tag in xaml

只需将 IsIndeterminate="True" 属性添加到 xaml 中的进度条标记