I learnt about the double Loaded event on User Controls in WPF

Found a nice issue with user controls. The loaded event gets fired twice …

“There's a technical reason why this currently happens. We end up firing loaded when:
1) we finish parsing the actual UserControl definition.
2) we finish parsing the usage of the UserControl.
While it's a little annoying that we get two loaded events, it gives you more control though since you can use it to figure out if you're done with parsing the defintion or the usage of the user control. We're definately up for suggestions in changing the behavior though.”

From http://social.msdn.microsoft.com/Forums/en-CA/wpf/thread/39ce4ebd-75a6-46d5-b303-2e0f89c6eb8d