ElementHost Layout Problems

后端 未结 2 1084
不思量自难忘°
不思量自难忘° 2020-12-18 13:15

I have a bunch of ElementHosts that I\'m loading onto my form. When this happens, the element hosts all appear with a black background. If I bring another control to front,

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-18 13:47

    Although not being a direct answer to your problem, have you tried to add just one ElementHost (and hence just one WPF UserControl) to your WindowsForm.

    You might achieve this if you create a WPF UserControl which aggregates all your individual WPF UserControl. Is this a viable solution for you? t might reduve Or do you have to mix windows forms controls with wpf ones?

提交回复
热议问题