【问题标题】:MSDN sample code not working: BusyIndicator not foundMSDN 示例代码不起作用:找不到 BusyIndi​​cator
【发布时间】:2011-03-27 03:43:17
【问题描述】:

我下载了源代码 http://silverlight.net/learn/videos/silverlight-videos/twitter-search-monitor/#video

Visual Studio 2010 将其转换为 SL4。运行时会报错

Error 3   The type or namespace name 'BusyIndicator' does not exist in the

命名空间'System.Windows.Controls' (您是否缺少装配 参考?)C:\tutorials_dotnet\silverlight\HDI-Silverlight-source-TwitterSearchApp_CS\TwitterSearchMonitor\obj\Debug\Views\Search.g.cs 38 42 TwitterSearchMonitor

【问题讨论】:

    标签: silverlight


    【解决方案1】:

    Silverlight SDK 中找不到BusyIndicator,您需要下载并安装它的Toolkit。

    安装后添加对System.Windows.Controls.Toolkit dll 的引用。

    使用 BusyIndi​​cator 将此命名空间别名添加到页面:-

    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    

    然后你使用 toolkit: alias 来定义它:-

    <toolkit:BusyIndicator x:Name="busyIndicator>
        <!-- your page content -->
    </toolkit:BusyIndicator>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-19
      • 1970-01-01
      • 2012-12-15
      • 2011-11-24
      • 2011-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多