Can't build Demo2 - DockPanel cannot be found

Sep 21, 2010 at 9:14 PM

I'm simply trying to build and run Demo2 in the SL4PopupMenuDemo project. However, the PopupMenuItem is derived from DockPanel, which doesn't seem to be defined. Is DockPanel defined in the Silverlight 4 toolkit? What do I need to do to get this demo running?



Sep 22, 2010 at 2:04 AM
Edited Sep 22, 2010 at 2:08 AM

Yes you can find it here. Once you have installed it make sure you add a reference to the Microsoft.Windows.Controls.dll in your SL4Popupmenu project.

Sep 27, 2010 at 10:36 PM

I downloaded the Silverlight 4 toolkit, but can't find Microsoft.Windows.Controls.dll. Are you sure the name of the dll containing the DockPanel class is Microsoft.Windows.Controls.dll?

I do have a System.Windows.Controls.dll reference and thought that might be the correct one. After adding it as a reference, Visual Studio still can't find the DockPanel class.

Any additional help in locating the DockPanel definition will be greatly appreciated.




Sep 27, 2010 at 10:43 PM

I found it in System.Windows.Controls.Toolkit.