2013-08-28 41 views
0

我利用WPF Telerik库进行简单的Tab控件。够奇怪的完全相同的代码/解决方案的工作我的个人计算机上,但给我的办公室的机器上出现以下错误:WPF Telerik Issue

代码

<Window x:Class="WpfApplication1.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    Title="MainWindow" Height="350" Width="900"> 
<Grid> 
    <telerik:RadTabControl> 
     <telerik:RadTabItem Header="Dashboard Summary" Width="200" Background="Gray"> 
     </telerik:RadTabItem> 
     <telerik:RadTabItem Header="Details" Width="200" Background="Gray" /> 
     <telerik:RadTabItem Header="Policy Tester" Width="200" Background="Gray" /> 
    </telerik:RadTabControl> 
</Grid> 
</Window> 

完全相同的3个库被引用,但在我的办公室相同的代码机呈现的标签,但犯规给我IntelliSense和不断抛出以下错误:

enter image description here

有没有人见过这样的问题?

感谢

+0

您如何引用Telerik库?你是否使用了一个直接引用一个保存你的控件的DLL,或者你有一些自动化机制让这些引用在VS中可用? –

+0

通过在Visual Studio中添加引用对话框直接引用 – Patrick

+0

确保对Telerik命名空间进行双重检查,对于我的xmlns:Telerik =“clr-namespace:Telerik.Windows.Controls; assembly = Telerik.Windows.Controls”,它应该对你来说也是类似的东西。 –

回答

0

添加以下引用
Telerik.Windows.Controls
Telerik.Windows.Controls.Navigation
Telerik.Windows.Controls.Data

,并确保它们添加到您的GAC
gacutil/I“Dll的位置”