Rafal Piotrowski
Posts: 12
Joined: 2005-08-26
|
how can I add WPF UserControl into Excel Task Pane?
thx
rp |
|
Andrei Smolin
Add-in Express team
Posts: 18787
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
Andrei Smolin
Add-in Express Team Leader |
|