Use containing type

Proprietary

DefaultStyleKeyProperty.OverrideMetadata must be given the containing type as the default style key, or the control picks up another type's default template. Flags a FrameworkPropertyMetadata constructed with a different type.

OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindDefaultStyleKeyOverrideMetadataArgument
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindDefaultStyleKeyOverrideMetadataArgument

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.