The sequence of OnApplyTemplate() and Loaded event

Aug 9, 2010 at 2:35 PM

Hi, guys

Recently, I encoutered a situation that that the OnApplyTemplate() method will be called before Loaded event, especially when I add some control to a window(something like that). Does someone know why will this happen? It's a pity that I cannot show this in my own demo, so I can just describe it, in hoping that someone may have encountered either or have something to tell.

Appreciate for your help.