Hi Shobika,
The issue occurs when the user switches theme while the Application is running. We have a settings dialog with the option to switch between Light and Dark mode. Via the ThemeSelector service from Microsoft, the switch is made. The dialog and service are included.
If the Application is running, and the user switches theme, the header text from the DataGrid does not change, all other colors do. After a restart of the Application, the header text does change to the correct color.
Attachment:
ThemeSelector_cf086e08.zip