Click here to Skip to main content
15,884,298 members
Articles / Desktop Programming / WPF

Use WPF Controls in VSTO Solutions with Visual Basic 2008

Rate me:
Please Sign up or sign in to vote.
4.33/5 (4 votes)
9 Mar 2008CPOL2 min read 56K   717   19  
An explanation of how to add WPF controls to Visual Studio Tools for Office solutions, writing Visual Basic code
<hostitem:hostItem hostitem:baseType="Microsoft.Office.Tools.Excel.Workbook" hostitem:interfaceType="Microsoft.VisualStudio.Tools.Office.IOfficeEntryPoint" hostitem:namespace="" hostitem:className="ThisWorkbook" hostitem:identifier="ThisWorkbook" hostitem:primaryCookie="ThisWorkbook" hostitem:master="true" hostitem:startupIndex="0" xmlns:hostitem="http://schemas.microsoft.com/2004/VisualStudio/Tools/Applications/HostItem.xsd">
  <hostitem:hostObject hostitem:name="ThisApplication" hostitem:identifier="ThisApplication" hostitem:type="Microsoft.Office.Interop.Excel.Application" hostitem:cookie="Application" hostitem:modifier="Internal" />
  <hostitem:hostControl hostitem:name="ActionsPane" hostitem:identifier="ActionsPane" hostitem:type="Microsoft.Office.Tools.ActionsPane" hostitem:primaryCookie="ActionsPane" hostitem:extenderCookie="" hostitem:modifier="Internal" />
</hostitem:hostItem>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Other
Italy Italy
I'm a Microsoft Visual Basic MVP. I'm an Italian .NET developer and I write articles and books about Visual Basic, Visual Studio LightSwitch, and the .NET technologies.

Check out my blog at: http://community.visual-basic.it/AlessandroEnglish

Comments and Discussions