2011-06-17 69 views
6

我正在與用戶控件的開始WPF項目定義爲:類型工具包:BusyIndi​​cator控件未找到

<UserControl x:Class="" 
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
     xmlns:converters="clr-namespace:.Modules.Converters" 
     xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" 
     mc:Ignorable="d"> 

在用戶控件我有這樣的:

<toolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Please wait..."> 

我在我的項目中引用了WPFToolkit.Extended引用,並且該引用似乎是有效的(沒有紅色下劃線)。

不過,我得到這個錯誤,不知道爲什麼:

類型「工具箱:BusyIndi​​cator控件」沒有被發現。驗證您是否缺少程序集引用,並且所有引用的程序集都已構建。

任何想法?

+0

你可以發佈你的XAML的標題 - 只是'UserControl'定義。 – ChrisF

+0

對不起!忘記使用StackOverflow代碼塊時,我把我的評論。我刪除了類名和一些轉換器定義,但不應該有關。謝謝! – NickHeidke

+0

您是否在項目中添加了參考以及代碼? – ChrisF

回答

12

導航到包含DLL的文件夾。右鍵單擊DLL並選擇屬性。在底部的常規標籤下點擊「解除阻止」按鈕。你應該很好走。

+0

這個伎倆,謝謝! – NickHeidke

+3

我在Windows 7中沒有在Dll文件的屬性上下文菜單中看到Unblock選項。 –

相關問題