Catel.MVVM.Navigation.NavigationAdapter.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( ) : void
return void
        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);
        }