WPF Delay Refresh of UI Elements in ItemsControl

Posted by Wonko the Sane on Stack Overflow See other posts from Stack Overflow or by Wonko the Sane
Published on 2010-05-21T14:32:57Z Indexed on 2010/05/21 14:40 UTC
Read the original article Hit count: 1262

Filed under:
|
|
|

Hello All,

The short question is - how can I prevent (delay) a bound UI element from refreshing until I want it to?

The longer explanation: I have a process that adds a number of items to an ItemsControl, and then performs some additional calculations on those items using a background thread. This (correctly) updates the items as it goes along.

However, I would like to prevent the ItemsControl from updating during a particular calculation, as it performs some reordering of the items before it does additional calculations based on that order, and then returns the items to their original order.

I do show a "Please Wait" animation on top of the ItemsControl, with the ItemsControl dimmed down as it is working, but I'd rather not hide the ItemsControl entirely because it gives the user an indication that progress is being made.

Thanks, wTs

© Stack Overflow or respective owner

Related posts about wpf

Related posts about refresh