WPF page reloading when becomes High Contrast theme.

Anderson Rodrigues Cavalcante 271 Reputation points
2023-08-30T14:44:51.9933333+00:00

When I change my Windows Theme to High Contrast, the current page of my WPF application reloads, starting the Constructor. If I activate a Toggle Switch and change it to High Contrast, the toggle becomes inactivated again.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,420 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
773 questions
{count} votes