Is there any way to make sure unifromgrid re-render its items at and only at the end of its resize

94 Views Asked by At

I start learn wpf recently and I found that uniformgrid has bad performance, it will recalculate and re-render it's items on resize triggered(like window resize or itself resized), this will make application really lag (eg: when retract sidebar animation played), I think that it's because of it call ArrangeOverride too frequently, so I try to delay re-render until resize end, if it happens in SizeChanged event then I can capture resize ends and block re-render task until then, but it's happened in ArrangeOverride and I don't know how to handle it

0

There are 0 best solutions below