The problem with displaying the toolbar in .net 3.5 format

I am using WindowsApiCodePack for Windows 7 to make a thumbnail toolbar for my form. As shown, I do 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 get the following error, which I have no idea:

Error 1 The type "System.Windows.UIElement" is defined in an assembly that is not referenced. You must add a reference to the assembly 'PresentationCore, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35'.

I follow this article: http://www.codeproject.com/KB/cs/EventInTime.aspx

+2
source share
1 answer

, PresentationCore. Windows API CodePack, .

+1

All Articles