问题描述
与标题一样简单,我想知道如何在gui上使用ProgressRing.我不知道如何导入似乎位于其中的Windows.UI.Xaml.Controls命名空间.谢谢!
As simple as in the title, I'd like to know how to use a ProgressRing on my gui. I can't figure out how to import the Windows.UI.Xaml.Controls namespace in which seems to be located.Thanks!
Eugenio
推荐答案
我认为您不能在WPF项目中添加对Windows Store Apps DLL的引用,因为它们是针对框架的不同版本构建的.
I don't think you can add a reference to a Windows Store Apps DLL to a WPF project, they are built against different versions of the framework.
但是,您可以使用来自其他WPF定位DLL的ProgressRing;MahApps Metro有一个 https://mahapps.com/docs/controls/progressring (来源为在github上,这样您就可以采取所需的功能,而不必完全跳入Metro风格)
You could however use a ProgressRing from a different WPF targeting DLL; MahApps Metro has one https://mahapps.com/docs/controls/progressring (source is on github so you can just take what is needed without having to jump fully into the metro style)
或者您可以按照教程 http://henryzhu1997.wordpress.com/2013/06/18/creating-a-progressring-for-wpf/
这篇关于如何在Windows的WPF应用程序中使用ProgressRing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!