public TicketEditorView(TicketEditorViewModel viewModel) { InitializeComponent(); DataContext = viewModel; EventServiceFactory.EventService.GetEvent <GenericEvent <TicketEditorViewModel> >().Subscribe( x => { if (x.Topic == EventTopicNames.FocusTicketScreen) { MainTabControl.BackgroundFocus(); } }); }
private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e) { MainTabControl.BackgroundFocus(); }