WPF UserControl in Excel task pane

Add-in Express™ Support Service
That's what is more important than anything else

WPF UserControl in Excel task pane
Rafal Piotrowski

Posts: 12
Joined: 2005-08-26
how can I add WPF UserControl into Excel Task Pane?

Posted 15 Mar, 2010 13:56:50 Top
Andrei Smolin

Add-in Express team

Posts: 16223
Joined: 2006-05-11
Hi Rafal,

ADXExcelTaskPane is a descendant of System.Windows.Forms.Form. So you add a WPF user control in exactly the same way you do this for a standard form:
- add a WPF UserControl to your project (see the Add New Item dialog) and populate it with controls
- build the project
- add an ElementHost (see the Toolbox) onto the Excel task pane and choose the UserControl in the Select Hosted Content dropdown

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Mar, 2010 05:58:47 Top