WPF应用程序在x64系统中的运行速度较慢. [英] WPF application working slower in x64 systems.

查看:410
本文介绍了WPF应用程序在x64系统中的运行速度较慢.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我参与了一个工具开发项目.该工具是自定义UI生成工具.最初是在Windows窗体中开发的.然后,我们开始缓慢地将项目迁移到WPF.因此,该应用程序仍是Windows Forms应用程序,并且 它的70%已经迁移到WPF(不是真正迁移,而是已更改为使用WPF的强大功能).该项目是根据任何CPU"作为目标平台构建的,并且运行良好,并且没有重大更改或开发.

I was invovled in a tool development project. The tool is a custom UI Building tool. This was developed in Windows Forms initially. Then we started migrating the project to WPF slowly. Therefore the application is still Windows Forms application and 70% of it is already migrated to WPF (not really migrated but changed to use the powerfull features of WPF). The project is built against "Any CPU" as target platform and was working fine and there were no major change or development.

最近,我们公司使用x64处理器和x64(Windows 7)操作系统升级了系统.此后,我们意识到该应用程序的运行速度非常慢.该应用程序是针对"Any CPU"构建的.作为traget平台.

Recently our company upgraded the systems with x64 processors and x64 (Windows 7) operating system. After this we realize the application is running very slow. The application is built against "Any CPU" as traget platform.

举个例子,有时候我们注意到popup.IsOpen = true需要很长时间才能执行,每个人都想知道正在发生什么事情.

For an example sometime we noticed popup.IsOpen = true takes really long time to execute and everybody is wondering what is happening.

有没有人遇到过此类问题并找到了解决方案?

Is there anyone who had this kind of problems and found solution?

此致

Vinod

推荐答案

本文可能会为您提供帮助:http://blogs.msdn.com/b/jgoldb/archive/2007/10/10/improving- wpf-applications-startup-time.aspx

然后Popup.Isopen为true,应用程序将为Popup生成VisualTree,并将VisualTree作为Popup的逻辑成员进行链接.它可能需要一些时间: http://msdn.microsoft.com/en-us/library/ms749018.aspx#PopupandtheVisualTree

And Popup.Isopen to true, application will general the VisualTree for the Popup, and link the VisualTree as a logic member of the Popup. It may need some time: http://msdn.microsoft.com/en-us/library/ms749018.aspx#PopupandtheVisualTree


这篇关于WPF应用程序在x64系统中的运行速度较慢.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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