private void ListAdminPage_OnLoaded(object sender, RoutedEventArgs e) { Context = new ListAdminPageViewModel(App.dbContext.Users.Find(Context.Id)); DataContext = Context; CheckList(); }
public ListAdminPage(ListAdminPageViewModel model) { InitializeComponent(); Context = model; DataContext = Context; }