.net - WPF - LayoutUpdated event firing repeatedly -
I'm adding some animation to my WPF application. Thanks, it proved to be quite simple to see one of my controls and its children had to move forward with some nice animation. Unfortunately, it all comes with a performance overhead when the item is added / removed or the size of the control changes, then I think the performance is being affected, but it seems That this perf hit is completely even in the lifetime of the whole app, whenever the item is completely stable. PanelLayoutAnimator class uses an associated asset to hook up the event. When this incident sets a fire, the render conversion is animated so that the children move to their new position. Unfortunately it seems that the layout has been updated event every other or the fire, even when nothing is happening in the application (at least I do not think That my code is doing anything - the app has no focus and the mouse is stable.) Due to the cause of the incident the event controller is not immediately clea...