简体   繁体   English

未在自定义窗口上绘制框架

[英]Frame Not Drawn on Customized Window

I have a customized window which implements corporate design guideline from my company. 我有一个自定义的窗口,该窗口实现了我公司的公司设计准则。

I have to load HTML in Frame object in WPF. 我必须在WPF中的Frame对象中加载HTML。 The problem is that when I place Frame with source html path in WPF using CustomizedWindow, Frame does not get drawn (only background color of frame is visible, not any data on the source) 问题是,当我使用CustomizedWindow在WPF中将带有源html路径的Frame放置在WPF中时,不会绘制Frame(只有Frame的背景色可见,而Source上没有任何数据)

And If I use normal Window (Not CustomizedWindow), the Frame is drawn properly with HTML content. 并且,如果我使用普通的窗口(Not CustomizedWindow),则将使用HTML内容正确绘制框架。 Is there something, that I need to override for Frame drawing to work properly in my CustomizedWindow. 是否有需要重写的东西,以便Frame绘图在CustomizedWindow中正常工作。

Please let me know if you need any further information on this issue. 如果您需要有关此问题的更多信息,请告诉我。 Thanks 谢谢

Ok I have found a problem. 好的,我发现了一个问题。 I commented AllowsTransparency Property on Window Styles and every thing works fine. 我在窗口样式上评论了AllowsTransparency属性,并且一切正常。 I have lost some functionality provided by this property, but I am still fine with it. 我已经失去了此属性提供的某些功能,但是我仍然满意。 If anybody have better solutions, please post it here. 如果有人有更好的解决方案,请在此处发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM