In WPF's XAML window.resources, one resource refers to another resource, and the following error occurs:
"Error 1" {Dependencyproperty.unsetvalue} "is not a valid value for the" System.Windows.FrameworkElement.FocusVisualStyle "property on the Setter.
Such as:
Although errors appear in the Error list, the missing program can still run, but the UI view (interface) is not visible in the designer.
This error occurs because:
The declaration of the referenced resource is behind the resource that references it (or there is no declaration of the referenced Resource).
Workaround:
Write the declaration of the referenced resource in front, such as:
In this way, you can see the beautiful interface in the XAML designer.
WPF resource nesting, one resource referencing another resource, the referenced resource should be declared in the previous