WindowsFormsHost is always the most top from WPF element

后端 未结 4 1593
长发绾君心
长发绾君心 2020-12-01 17:11

how to set the z-index windowsformhost that they are not always at the top of the WPF element ?

4条回答
  •  旧时难觅i
    2020-12-01 17:25

    I've just encountered the same problem.

    There is a potential workaround - depending upon the nature of the Windows Host window control and the WPF element you want to appear:

    I bound the the WindowsFormsHost control's Visibility to a property on my view model to enable me to hide the host (and the controls on it) when I want to display the WPF that we want to appear over it.

提交回复
热议问题