问题出在.NET 3.5中的形式缩略图栏 [英] Problem showing thumbnail toolbar in .net 3.5 form

查看:153
本文介绍了问题出在.NET 3.5中的形式缩略图栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆