简体   繁体   English

以 Windows 形式托管 WPF 用户控件

[英]Hosting a WPF usercontrol in a Windows form

I have a WPF keyboard control that is hosted in a Windows form Control.我有一个 WPF 键盘控件,它托管在 Windows 表单控件中。 It works fin on most computers, but not on all.它在大多数计算机上都能正常工作,但并非在所有计算机上都能正常工作。

For some reason or another, on some computers when I open the win form with the wpf keyboard the wpf control is blank.出于某种原因,在某些计算机上,当我使用 wpf 键盘打开 Win 表单时,wpf 控件为空白。 Just get an empty square instead of the keyboard.只需获得一个空方块而不是键盘。

All of the parts of the project is in .net 3.0 and is built in C# 3.该项目的所有部分都在 .net 3.0 中,并内置在 C# 3 中。

Anybody have any ideas?有人有什么想法吗?

Update更新

I unfortunately don't have access to the computer my self only via a person on the other end of a phone.不幸的是,我只能通过电话另一端的人访问我自己的计算机。

I've even tried setting up a computer without .net 3.0.我什至尝试设置没有 .net 3.0 的计算机。 That gives me an error message这给了我一个错误信息

Tried .net 3.0 without any service pack also, but it doesn't recreate the problem.在没有任何服务包的情况下也尝试了 .net 3.0,但它不会重现问题。

Did you ensure that you have the right version of .NET installed on the computers in which they are not working?您是否确保在不工作的计算机上安装了正确版本的 .NET?

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

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