gpt4 book ai didi

wpf - WindowsFormsHost ZOrder

转载 作者:行者123 更新时间:2023-12-04 15:04:36 28 4
gpt4 key购买 nike

看来 WindowsFormsHost 控件设置为显示在顶部。有什么方法可以更改其 z 顺序以允许同一窗口上的其他 WPF 控件在 WindowsFormsHost 控件顶部可见?

最佳答案

不幸的是,没有,因为 winformshost 被合成到 WPF 窗口的方式,它必须出现在顶部。

请参阅 here 中的 z 顺序段落.

In a WPF user interface, you can change the z-order of elements to control overlapping behavior. A hosted Windows Forms control is drawn in a separate HWND, so it is always drawn on top of WPF elements.

A hosted Windows Forms control is also drawn on top of any Adorner elements.

关于wpf - WindowsFormsHost ZOrder,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3556076/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com