Exemplo n.º 1
0
        protected override void OnShareTargetActivated(ShareTargetActivatedEventArgs args)
        {
            // Normally wouldn't need to do this but need the container to be initialised
            Initialize();

            // replace the share operation in the container
            container.UnregisterHandler(typeof(ShareOperation), null);
            container.Instance(args.ShareOperation);

            DisplayRootViewFor <ShareTargetViewModel>();
        }
Exemplo n.º 2
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.º 3
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();
        }