Example #1
0
 public LoginView(LoginViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }
Example #2
0
 public LoginView(LoginViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
     EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnEvent);
 }