![]() ![]() ModelBuilder.Entity().HasData(GetUsers()) Protected override void OnModelCreating(ModelBuilder modelBuilder) ![]() Public UserDbContext(DbContextOptions options) : base(options) Public class UserDbContext : DbContext, INotifyPropert圜hanged Private void BtnUpdate1_Click(object sender, RoutedEventArgs e) Var mainWindow= serviceProvider.GetService() Private void OnStartup(object s,StartupEventArgs e) ServiceProvider = services.BuildServiceProvider() Options.UseSqlite("Data Source = User.db") ServiceCollection services = new ServiceCollection() Private readonly ServiceProvider serviceProvider Private void BtnAdd0_Click(object sender, RoutedEventArgs e) context.Password = ĬollectionViewSource.GetDefaultView(DataGridList.ItemsSource).Refresh() Xaml passwordbox binding how to#I know that the standard Control makes that is not possible to BIND the PasswordBox to my password field, but what should I do if I want to change it? Anyone knows how to solve it? The Second TabItem is for record modification - Update -> it works for all fields EXCEPT PasswordBox. I created a page containing a Datagrid with all records from my Table (CollectionView) and a Tabcontrol.įirst TabItem for record creation - ADD with a PasswordBox -> it works Password field is filled with the Input Value Net 6.0, XAML-C# 10 and SQL Server), but having some trouble with the PasswordBox in Update. I'm creating a small WPF app (Visual Studio 2022, WPF. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |