To implement a tab-based environment in WPF we need to convert our forms to user controls, however when doing this, the Loaded
event of the user control is called two times.
While searching on the internet other people also pointed this issue. How can we ensure that loaded event is called only once? Because when it is called multiple times, initialization of our controls happens multiple times.