private void GroupDetailView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     var model = DataContext as GroupViewModel;
     if (model != null) {
         _userListViewModel = new UserListViewModel(model.GetGroupUsers());
         _usersListView.DataContext = _userListViewModel;
     }
 }
Esempio n. 2
0
 public DeleteUserCommand(UserListViewModel usersListViewModel)
 {
     _usersListViewModel = usersListViewModel;
 }
Esempio n. 3
0
 public UsersDemoPage()
 {
     InitializeComponent();
     _userListViewModel = new UserListViewModel(FakeDataService.GetUsers());
     DataContext = _userListViewModel;
 }