private void MessengerService_StandAloneDialog(object sender, ShowViewMessengerEventArgs e) { var view = _container.GetInstance <UserControl>(e.ViewModelType); view.DataContext = e.DataContext; _shell.ContentControl.Content = view; }
private static void MessengerService_StandAloneDialog(object sender, ShowViewMessengerEventArgs e) { var view = Container.Instance.GetInstance <Window>(e.ViewModelType); view.DataContext = e.DataContext; view.ShowDialog(); }
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; }
private static void _messengerService_ShowStandAloneDialog(object sender, ShowViewMessengerEventArgs e) { throw new NotImplementedException(); }