Exemplo n.º 1
0
        public void SetupNavigationService(Frame frame)
        {
            if (_container.HasHandler(typeof(INavigationService), null))
            {
                _container.UnregisterHandler(typeof(INavigationService), null);
            }

            this._navigationService = _container.RegisterNavigationService(frame);

            this._navigationService.Navigated        += _navigationService_Navigated;
            this._navigationService.NavigationFailed += _navigationService_NavigationFailed;

            this.NavigateTo();
        }
Exemplo n.º 2
0
        public void SetupNavigationService(Frame frame)
        {
            if (_container.HasHandler(typeof(INavigationService), null))
            {
                _container.UnregisterHandler(typeof(INavigationService), null);
            }

            _navigationService = _container.RegisterNavigationService(frame);

            if (_resume)
            {
                _navigationService.ResumeState();
            }
        }
        public void SetupNavigationService(Frame frame, UIElement shellView)
        {
            _frame     = frame;
            _shellView = shellView;
            if (_container.HasHandler(typeof(INavigationService), null))
            {
                _container.UnregisterHandler(typeof(INavigationService), null);
            }

            _navigationService = _container.RegisterNavigationService(frame);
#if ARM
            var dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;
            InitializeTouch(dispatcher);
#endif
            InitializeRfid();
        }