partial void Initialize()
{
var rootFrame = NavigationRoot as PhoneApplicationFrame;
if (rootFrame == null)
{
return;
}
//this.SubscribeToWeakGenericEvent<CancelEventArgs>(rootFrame, "BackKeyPress", OnBackKeyPress);
this.SubscribeToWeakGenericEvent<NavigatingCancelEventArgs>(rootFrame, "Navigating", OnNavigatingEvent);
this.SubscribeToWeakGenericEvent<NavigationEventArgs>(rootFrame, "Navigated", OnNavigatedEvent);
}