[英]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 对话框的 Visual Studio 扩展中创建自定义对话框:
and the Find & Replace dialog.和“查找和替换”对话框。
I don't want to create an entirely new WPF window that is separated from visual studio (ie has its own icon on the start bar) - I want a dialog that is within VS that can supports custom controls.我不想创建一个与 Visual Studio 分开的全新 WPF 窗口(即在开始栏上有自己的图标) - 我想要一个在 VS 中可以支持自定义控件的对话框。 I specifically want a dialog like this that has a ListView and a TextBox.
我特别想要一个像这样有一个 ListView 和一个 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?
至少有办法伪造这种行为吗?
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.我知道现在是 2018 年,但是如果有人在搜索中遇到此页面并想知道同一问题的答案,我已添加了指向 Microsoft 官方文档的链接。
Have a look at Adding a Tool Window which shows the various ways to add a WPF ToolWindow
control to Visual Studio.查看添加工具窗口,其中显示了将 WPF
ToolWindow
控件添加到 Visual Studio 的各种方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.