如何提高我的Wpf应用程序的速度 [英] How Can I Increases Speed Of My Wpf Application

查看:228
本文介绍了如何提高我的Wpf应用程序的速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WPF的新手。



在我的wpf应用程序中,我有一个带有DataGrid的Window,我使用Linq lambda表达式将记录从数据库加载到DataGrid 。



在窗口初始化期间加载记录,由于数据库中有大量记录,窗口初始化需要很长时间,应用程序无响应。



请每个人帮我一个........

解决方案

你必须实施分页以优化您的应用程序速度。关于CodeProject的文章也有下一篇文章:

WPF - 在DataGrid / ListBox中进行分页 [ ^ ]



PS:我还有一篇关于分页到ASPX应用程序的文章,我将数据库级别的分页提供给存储你也可以重复使用的程序。以下是链接:高级ASPX GridView分页和数据实体 [ ^

I am new to WPF.

In my wpf application, I have a Window with a DataGrid, I load records from database to the DataGrid using Linq lambda expression.

The records are loaded during window's initialization, due to the large number of records in database, window initialization takes a long time and the application becomes unresponsive.

Please Every one Help me As soon as........

解决方案

You have to implement pagination in order to optimize your application speed. There are articles about this also on CodeProject like the next one:
WPF - Paging in DataGrid / ListBox[^]

PS: I have also an article about pagination into an ASPX application where I provide pagination at the database level into a stored procedure that could be reused also by you. Here is the link: Advanced ASPX GridView Pagination and Data Entities[^]


这篇关于如何提高我的Wpf应用程序的速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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