OnApplyTemplate method is don't execute

Nov 15, 2011 at 11:29 PM

I'm trying implement ElementFlow control in my custom MainWindow but it can't show nothing, I check it and I found that the method OnApplyTemplate never is executed so I tried call in my code in the load event of my MainWindow and when it is callen enter to the method but the Viewport and the _modelContainer variable are null, someone has this problem plase let me know hoe it can be solved. Thanks. :)