如何使tabControl的加载盒快速? [英] How to make boxes of tabControl's load fast?
本文介绍了如何使tabControl的加载盒快速?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想问一些有关如何使用许多选项卡加载选项卡控件的问题吗?
我会实现它,但是响应非常慢.
就像这样:
-我有带有10个标签的tabControl.
-每个选项卡都包含各种对象,只说它是datagrid等
-我单击菜单以显示选项卡控件",
-但是你猜怎么着?,需要6秒钟以上才能完成.
我该怎么办?
谁能给我样品?
谢谢
Hi,
I wanna ask some question about how to load Tab Control with many of tabs?
I''d implement it, but the responses''s very slow.
Just like this :
- I have tabControl with 10 tabs on it.
- Each of tab contain variuos kinds of object, just say it datagrid and so on
- I click a menu to show the Tab Control,
- But guess what?, It need more than 6 seconds to be done.
What should i do with that?
Can anyone give me sample?
Thanks
推荐答案
实施延迟绑定.这意味着,默认情况下,仅可见选项卡将填充数据.仅在单击或显示所有其他选项卡时,才应填充数据.
Implement lazybinding. That means , only the visible tabs are to be populated with data by default. All other tabs should be populated with data only if clicked or made visible.
这篇关于如何使tabControl的加载盒快速?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文