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
210
Changing tabs, load form everytime
posted

I am using xamDockManager in my application. I placed user control on each tab. the problem is that, every time I switch between tabs, it call UserControl_Loaded method, this will load my screen again and again. and call the dataload method again and again, which \kills the performance.

To resolve this, I place a boolean variable and on first load, I make it true and other time, if found true, return from the method.

If some one has some better way to handle it, using some property or other, it is highly appreciated.

 

Regards

Muhammad Sharjeel Ahsan