WPF 不在远程桌面上呈现 [英] WPF not rendering on remote desktop

查看:46
本文介绍了WPF 不在远程桌面上呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过远程桌面连接呈现 WPF 应用程序时遇到问题.

I'm having problems with the rendering of a WPF app over a remote desktop connection.

应用程序 chrome 正在呈现,但没有任何内容通过,就好像窗口没有在绘制一样.相反,屏幕上的内容显示在它的位置.

The applications chrome is rendering, but none of the content is coming through, as if the window is not drawing. Instead the previous content of the screen is showing in it's place.

这一直是运行在 Vista & 上的应用程序的问题.Win 7,从XP和Win7远程控制.

This has been a problem with the application running on both Vista & Win 7, with remote control being taken from XP and Win7.

问题不是特定于应用程序的,如果我创建一个新的 WPF 应用程序,窗口上只有一个文本块,它也不会运行.(在 VS2008 中预览窗口也不会显示.)

The problem is not application specific, if I create a new WPF app, with just a textblock on the window, it will also not run. (Neather will the windows preview in VS2008 display.)

在 RDP 下运行 WPF 有什么技巧吗?

Is there some trick to getting WPF running under RDP?

推荐答案

我在 Kevin Dente 的博客(来自 twitter 帖子)上读到他在虚拟机中使用 WPF 应用程序时遇到问题.与远程桌面相同,问题可能相同.凯文能够通过在

I read on Kevin Dente's blog (from a twitter post) that he was having trouble with WPF apps in virtual machines. While not the same as Remote Desktop, it's possible the problem could be the same. Kevin was able to fix his problem by disabling hardware accelleration by creating a DWORD registry value at

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

然后将其设置为 1.

他的原始博客文章在这里:http://weblogs.asp.net/kdente/archive/2009/10/19/visual-studio-2010-beta-2-editor-performance-fix-running-on-a-virtual-machine.aspx

His original blog post is here: http://weblogs.asp.net/kdente/archive/2009/10/19/visual-studio-2010-beta-2-editor-performance-fix-running-on-a-virtual-machine.aspx

这可能不是您的确切解决方案,但也许它为您指明了正确的方向.

That may not be your exact solution, but maybe it points you in the right direction.

这篇关于WPF 不在远程桌面上呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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