
I have controls which are required to do expensive setup once their properties are realized (IE: After IsInitialized). My controls do this on the Loaded event, due to the fact that they will only typically have to do this setup once. The problem is, IsLoaded fires more than once when elements are in MDI.
Loaded is spammed when the window is created, focused, or sometimes even when the window has been requested to close (as it must be focused first) and this is causing horrible performance degradation.
What needs to be done to avoid this behavior, or work around it?
Loaded is spammed when the window is created, focused, or sometimes even when the window has been requested to close (as it must be focused first) and this is causing horrible performance degradation.
What needs to be done to avoid this behavior, or work around it?