WP7 main page loads twice
Anyone have an idea what would cause my MainPage to load twice in WP7?
I looked at whats in the callstack both times in 开发者_StackOverflowthe MainPage constructor and I don't see any difference. Also the OnNavigateTo() event fires twice, but the OnNavigatingFrom() never fires.
In my App.xml I had this
< !--RootFrame points to and loads the first page of your application-->
< Application.RootVisual>
< phone:PhoneApplicationFrame x:Name="RootFrame" />
< /Application.RootVisual>
When I removed it everything worked as it should
精彩评论