WPF window textbox - editing text affects different window

試著忘記壹切 提交于 2019-12-02 09:55:06

VS doesn't really know about your window, and you'll run into problems with acceleratory keys and command routing.

The proper way to do this is to either implement a modal dialog (see my response to your other post regarding Microsoft.VisualStudio.PlatformUI.DialogWinodow).

Or you should implement a toolwindow.

Sincerely,

DrGriff

The solution provided above solved the problem described above, but it wasn't the complete solution. What I found was that, having closed my WPF Dialog Window, I was then able to type into a C# window in the open Solution, but not able to Delete or back-space to remove text. Also when I tried to close Visual Studio, it gave the following warning:

Microsoft Visual Studio has detected that an operation is blocking user input. This can be caused by an active modal dialog or a task that needs to block user interaction. Would you like to shut down anyway?

Please refer to the following post for the solution to this: WPF modal window in Visual Studio Extension blocking input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!