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