问题出在.NET 3.5中的形式缩略图栏 [英] Problem showing thumbnail toolbar in .net 3.5 form
问题描述
我usign WINDOWSAPI codePack为Windows 7做一个缩略图工具栏,我的形式。在图示的形式事件我这样做:
I am usign WindowsApiCodePack for windows 7 to make a thumbnail toolbar for my form. In the form shown event i am doing this:
tbButton1 = new ThumbnailToolbarButton(new Icon("myOverlayIcn.ico"), "Next Event");
tbButton1.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(button1_Click);
tbButton2 = new ThumbnailToolbarButton(new Icon("myOverlayIcn.ico"), "Next Event");
tbButton2.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(button2_Click);
TaskbarManager.Instance.ThumbnailToolbars.AddButtons(this.Handle, tbButton1, tbButton2);
我收到以下错误,我不知道:
I am getting the following error of which i have no idea:
错误1型'System.Windows.UIElement在未被引用的程序集中定义。您必须添加一个引用程序集presentationCore,版本= 3.0.0.0,文化=中性公钥= 31bf3856ad364e35。
Error 1 The type 'System.Windows.UIElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
我下面用这篇文章: HTTP://www.$c$cproject.com/KB/cs/EventInTime的.aspx
I am following using this article: http://www.codeproject.com/KB/cs/EventInTime.aspx
推荐答案
作为消息状态,你需要添加一个引用到presentationCore。它要求的Windows API codePack,但不是在你的应用程序所引用。
As the message states, you need to add a reference to PresentationCore. It's required by the Windows API CodePack, but not referenced in your application.
这篇关于问题出在.NET 3.5中的形式缩略图栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!