Private Sub Application_Start (Nav As NavigationController)
...
If Page1.RootPanel.Width = 0 Or Page1.RootPanel.Height = 0 Then
Wait For Page1_Resize(Width As Int, Height As Int)
End If
'page size will be correct at this point. Do remember that it can later change.
'do whatever you need here
End Sub