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.
Could you create a temporory collection that stores the calculated results, then, once completed you could assign it to the property that you are bound to?
精彩评论