开发者

Is it possible to run WPF triggers on a secondary thread?

开发者 https://www.devze.com 2023-02-10 06:10 出处:网络
just wondering is it possible to run WPF triggers 开发者_运维百科on a secondary thread? I have a wpf grid ( Microsoft one) with over 100k rows and the viewport has about 50-70 rows with fast moving st

just wondering is it possible to run WPF triggers 开发者_运维百科on a secondary thread? I have a wpf grid ( Microsoft one) with over 100k rows and the viewport has about 50-70 rows with fast moving streaming data. Scrolling down whilst the data is updating feels fine and snappy but the minute i put some triggers to to highlight cells or rows, it starts to hang up a bit on scroll. Was wondering is it possible to run WPF triggers on a secondary thread?

Thanks


I don't know whether or not this qualifies as an answer but here goes:

Are you absolutely sure a user of the application wants to see 100K rows?

Why not load new rows asynchronously and move out/delete old rows?

You could simulate the vast amount of rows by manipulating a scrollbar and/or paging controls to simulate the actual amount of rows but never load more than a couple of hundred.

0

精彩评论

暂无评论...
验证码 换一张
取 消