예제 #1
0
        protected override void PrepareViewFirst(Frame rootFrame)
        {
            _container.Instance(rootFrame);
            _container.RegisterNavigationService(rootFrame);
            _events = _container.GetInstance <IEventAggregator>();

            var messages = new GlobalMessagesService();

            _events.Subscribe(messages);
            _container.Instance(messages);
        }
예제 #2
0
        protected override void PrepareViewFirst(Frame rootFrame)
        {
            _container.Instance(rootFrame);
            _container.RegisterNavigationService(rootFrame);
            _events = _container.GetInstance<IEventAggregator>();

            var messages = new GlobalMessagesService();
            _events.Subscribe(messages);
            _container.Instance(messages);

#if WINDOWS_PHONE_APP
            _container
                .GetInstance<BackButtonHandler>()
                .Initialize();
#endif
        }