WPF TextBox not accepting Input when in ElementHost in Window Forms

前端 未结 4 973
北海茫月
北海茫月 2020-12-05 00:45

We are developing a UI Control in WPF to be consumed within an existing Windows Forms / MFC application engine (Rhino 3D).

The application engine exposes the ability

4条回答
  •  独厮守ぢ
    2020-12-05 01:20

    Check out my own question about this very same thing. in the end though, all you need is something like this:

    Window window1 = new Window();
    ElementHost.EnableModelessKeyboardInterop(window1);
    window1.Show();
    

    Why is my WPF textbox "kinda" readonly?

提交回复
热议问题