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 use
Loaded
Set a loaded flag in the event, and, if the flag has already been set, don't do anything.
loaded