Managing WPF in a VSTO add-in - ElementHost versus native WPF window?

I have a Microsoft Word VSTO add-in. When the user clicks the ribbon button, I want the WPF window to display. I always thought that the only way to do this is to add an ElementHost control to the Winforms form and add WPF controls on top. But I found through here that I can also do the same by converting the WPF UserControl to a WPF window and using control.Show () to display it. This seems to eliminate the need to use ElementHost. Before embarking on this path, for some reason should I not do this? Is there any technical difference or time difference with this?

+4
source share

All Articles