Please, help me with the following question:
first, I create a WPF user control in a WPF User Control Library project; then, I create a new visual studio add-in project, and then in the OnConnection method I call Windows2.CreateToolWindows2(...) method to create a tool window which hosts that WPF user control created in step1. here is the question: the last parameter has always been null.
According to MSDN, I set ComVisibleAttribute to true and enabled <b>Register for COM Interop</b> compiler option. But the problem is still there.
So, please help me! thanks