Пример #1
0
        private void MessengerService_StandAloneDialog(object sender, ShowViewMessengerEventArgs e)
        {
            var view = _container.GetInstance <UserControl>(e.ViewModelType);

            view.DataContext = e.DataContext;

            _shell.ContentControl.Content = view;
        }
Пример #2
0
        private static void MessengerService_StandAloneDialog(object sender, ShowViewMessengerEventArgs e)
        {
            var view = Container.Instance.GetInstance <Window>(e.ViewModelType);

            view.DataContext = e.DataContext;

            view.ShowDialog();
        }
Пример #3
0
        private void _messengerService_ShowViewRequested(object sender, ShowViewMessengerEventArgs e)
        {
            var contentControl = ResolveRegion(e.Region);

            var userControl = _iocContainer.ResolveFor <UserControl>(e.ViewModelType);

            userControl.DataContext = e.DataContext;

            contentControl.Content = userControl;
        }
Пример #4
0
 private static void _messengerService_ShowStandAloneDialog(object sender, ShowViewMessengerEventArgs e)
 {
     throw new NotImplementedException();
 }