WPF dialog does not allow editing text field

The WPF form that I run from the WinForms window displays with all the text fields as uneditable when it runs as a modeless dialog box. It works well when it is a modal window. I can still type spaces or embed text. But regular printing does not work. I am using 3.5 with SP1. Does anyone know how to solve this?

+5
source share
1 answer

You need to call ElementHost.EnableModelessKeyboardInterop for your WPF window. This allows you to connect the WPF message outline for keyboard input.

+8
source

Source: https://habr.com/ru/post/887191/


All Articles