WindowsFormsHost不可见AllowsTransparency = True [英] WindowsFormsHost is not visible AllowsTransparency=True

查看:517
本文介绍了WindowsFormsHost不可见AllowsTransparency = True的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我想使用WindowsFormsHost创建无板表单.但是,当我使用AllowTransparency = True时,WindowsFormsHost变得不可见.有可能解决这个问题吗?如果是.怎么做?

I would like to create board-less form with WindowsFormsHost. But when I'm using AllowTransparency=True the WindowsFormsHost become invisible. Is possible to solve that problem? If yes. How to do it?

谢谢.

推荐答案

据我所知,这是没有办法的,因为Win32不是透明的概念. 并且WinForm始终是WPF的最高优先级. 仅将其删除,AllowTransparency = True. 我很久以前一直在苦恼,寻找很多像开放源代码组件这样的WindowFormHost并没有解决这个问题.

As far as I know, there is no way, because Win32 is not transparent concept. And WinForm always presents the highest priority, always on top of WPF. Only remove it, AllowTransparency = True. I have been distressed before for some time, looking for a lot of WindowFormHost like open source components, did not solve this problem.

您还可以看到:

wpf WindowsFormsHost在AllowsTransparency ="True"时不可见

最好的问候,

鲍勃


这篇关于WindowsFormsHost不可见AllowsTransparency = True的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆