how to use ProgressRing in a WPF application for windows

我的梦境 提交于 2020-05-28 07:39:27

问题


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


回答1:


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.

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)

Or you could implement your own following a tutorial http://henryzhu1997.wordpress.com/2013/06/18/creating-a-progressring-for-wpf/



来源:https://stackoverflow.com/questions/27063768/how-to-use-progressring-in-a-wpf-application-for-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!