开发者

WPF - RibbonControlLibrary not supported with Visual Studio 2010?

Today i licensed and downloaded the WPF RibbonControlsLibrary from Microsoft which is an extension to the WPF Toolkit. I've read some tutori开发者_开发技巧als to implement an examlpe here

When I tried the example is sadly noticed that in XAML i could not access the referenced library.

xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"

<ribbon:Ribbon .... >

I found out that the Problem lies within Visual Studio 2010 , because in Visual Studio 2008 everything works fine.

Does anyone have a solution for this issue or a workaround to use the library in Visual Studio 2010 ?


RibbonControlsLibrary has no problem with VS 2010, I'm telling you because we are using it in our projects; the most common problem is that the library is a .dll and when downloaded ,you don't realize because no message or warning is shown but it is automatically blocked by Windows and then inaccessible to VS unless you unblock it which is quick fix; I blogged some time ago about it, you can find the post here: unblocking the Ribbon Control Library


You might be unblocking the wrong dll, probably the one that is output in your bin folder at compile time.

In solution explorer navigate to References folder and click once on the RibbonControlsLibrary. Look in the properties window and note the full path. Copy or navigate to the exact path and from there, right click and go to properties and unblock the dll.

Close your solution, re open it, and build it and it should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜