Hi @Максимилиан Янулевич, Welcome to Q&A. You could try the following code to get what you wanted.
One easy way:
//after modifying the data
DataContext=null;
DataContext =db.Users.Local.ToObservableCollection();
For real-time modification of Name and Age, change the binding method to:
<TextBlock Text="{Binding Name,Mode=TwoWay}" FontSize="16"/>
<TextBlock Text="{Binding Age, Mode=TwoWay}" FontSize="13"/>
You may need to refer to this document:Binding declarations overview (WPF .NET)
Another way you should implement INotifyPropertyChanged interface for your binding source object.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.