Here is a problem: after loading some visual elements, I need to change something knowing their new sizes. There is MeasureOverride method, but it is called before changing the size. Is there any method that is called after it?
P.S. I know that I can calculate new sizes having old ones, but new sizes aren’t calculated simply. It would be much easier to just use such an event (if it exists).
Are you looking for the
FrameworkElement.SizeChangedevent?MSDN’s description:
EDIT:
This article has a good description of both the
SizeChangedandLayoutUpdatedevents, including an overview of how the layout loop works.