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); }
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 }