Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Load event raised earlier when using Office2007 style
posted

Hi,

I've noticed that when loading styles through StyleManager.Load, the Load event on my usercontrols happens earlier in some scenarios. I still haven't identified which scenario makes this happen (as I have different UserControls and some of them work as they work without styles and others more complex raise the event before)

The event seems to be raised exactly when the ResumeLayout(false) method is called in the topmost Container in the user control.

Is this expected behavior? What could be the reasons for this to happen?

If I remove the StyleManager.Load declaration from my application then everything works as normal.

 

Edit: This only seems to happen with the Office2007 style? 

 

Thanks,

Sebastian