Search code examples
c#wpfvisual-studiovisual-studio-2015visual-studio-extensions

Is it possible to create a modal dialog similar to the Intellisense dialog in a Visual Studio extension?


I'm trying to figure out if and how I can create a custom dialog in a Visual Studio extension similar to the Intellisense dialog:

Intellisense dialog

and the Find & Replace dialog.

enter image description here

I don't want to create an entirely new WPF window that is separated from visual studio (i.e. has its own icon on the start bar) - I want a dialog that is within VS that can supports custom controls. I specifically want a dialog like this that has a ListView and a TextBox.

Is that at all possible? I've searched around a lot but resources seem scarce. Is there at least a way to fake this behaviour?


Solution

  • I know that it's 2018 now, but if anyone come across this page in a search and wants to know the answer to the same question, I've added a link to the official Microsoft documentation.

    Have a look at Adding a Tool Window which shows the various ways to add a WPF ToolWindow control to Visual Studio.