WPF 虚拟化无法在带有 Windows 经典主题的 Windows 2008 Server R2 上运行(禁用 aero)
我在使用 Windows Server 2008 R2 时遇到了一个奇怪的问题。我有启用虚拟化的 WPF 应用程序(虚拟化堆栈面板和树视图的延迟加载)。它在 Windows 7 系统上按预期工作。然而,在具有经典 wndows 主题的 Windows 2008 R2 系统上(没有关闭 aero aka destop experience),则不会。当我调试它时,控件私有属性表明虚拟化已启用,但是我看到所有数据都是通过我的虚拟化模型获取的。
编辑:启用用户体验等,但不是windwos7主题,问题仍然存在。这是在 TreeView 控件上。我使用这种技术来启用数据虚拟化: http://www.codeproject.com/KB/ WPF/WpfDataVirtualization.aspx
关于可能发生的情况的任何想法
I am running into a weird problem with windows server 2008 R2. I have WPF app which has virtualization enabled (virtualization stack panel and lazy loading for the tree view). It works as exepcted on windows 7 system. However on a windows 2008 R2 system with the classic wndows theme(no aero aka destop experiance turned off), it does not. When I debug it the controls private properties indicate that virtualization is enabled, however my I see that all the data is fetched through my virtualized model.
EDIT: Enabled user experiance etc but not the windwos7 theme still the issues persists. This is on a TreeView control. I use thsi technique to enable data virtualization: http://www.codeproject.com/KB/WPF/WpfDataVirtualization.aspx
Any ideas as to what could be going on
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WPF 使用硬件加速来执行渲染。只要不存在,您就会失去功能。您是通过远程桌面还是直接控制台连接到服务器?
解释渲染的博客文章选项
WPF uses hardware acceleration to perform the rendering. You lose functionality whenever this is not present. Are you connecting to the server via Remote Desktop or with a direct console?
Blog post explaining the rendering options