简体   繁体   中英

Pre-load WPF DataGrid

My DataGrid(In a tab) has a lot of ColumnHeader and DataTrigger. Everything is good until I select the tab for the first time, whole application lag for 5 seconds. After that, there is no more lag.

So I was wondering if I can pre-load DataGrid first, then there won't be a lag. Is it possible to do so?

I think I found the answer.

This solves my issue. Because debugger slow down my application. https://stackoverflow.com/a/6629040/1563172

I also found the answer that maybe could solve leopold's issue. https://stackoverflow.com/a/13765128/7382451

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM