【问题标题】:Where is ProgressRing Control?ProgressRing 控制在哪里?
【发布时间】:2014-09-10 12:06:38
【问题描述】:

我正在尝试编写基于 Windows Phone 8 SDK 的应用程序。我不断看到提到 ProgressRing 控件,但在工具箱或 xaml 设计器中没有看到它。

我该如何使用它?

【问题讨论】:

    标签: c# xaml windows-phone-8


    【解决方案1】:

    ProgressRing 是 Win8 UI 控件的一部分,而不是 WP8。在 WP8 中,您应该使用 SystemTray.ProgressIndicator 代替它是 windows phone UI shell 的一部分。有关示例,请参阅 herehere

    【讨论】:

      【解决方案2】:

      请参阅下面的博客链接,了解简单的复制和粘贴代码以准确复制 Windows ProgressRing(使用实际样式代码)。完美运行,只需将其添加到我的 WP8 项目中:

      http://briandunnington.github.io/progressring-wp8.html

      在这个问题的答案中有更多关于使其适应 WP8 的信息:

      How to Use ProgressRing in Windows Phone 8

      下载 this app for your phone 以查看它的实际效果。

      【讨论】:

        【解决方案3】:

        ProgressRing 不适用于 Windows Phone 7 或 8,您必须使用 ProgressBar 或者 PerformanceProgressBar:
        http://www.windowsphonegeek.com/articles/WP7-PerformanceProgressBar-in-depth

        【讨论】:

        • 只是一个旁注,在 wp8 中,进度条本质上是性能进度条
        猜你喜欢
        • 2017-10-14
        • 2014-07-16
        • 2022-11-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-08
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多