I have a WPF application.
In my App.xaml.cs I save the full name of the logged in user as follows:
App.Current.Properties["FullName"] = GetValueFromDatabase();
I have two screens/windows in the same application.
First is the users scrren, which has a an editable WPF data grid where I can update full name of the current user. Second is a screen which has a Label/TextBox control which displays the Current users fullname from the Application object.
When both the windows are open, if I change the full name of the user and save the changes in the first screen. I want to trigger an event so that, it is also reflected in the second screen immediately?
Which event do I hook to this application and how?
I am using MVVM pattern and entity framework.