Add [TemplatePart] for a looked-up template part
ProprietaryA GetTemplateChild("PART_X") call in OnApplyTemplate is an undeclared dependency on the control template. Adds [TemplatePart(Name = ..., Type = ...)] to the control for every part it looks up but neither it nor a base control declares.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. AddTemplatePartAttributemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. AddTemplatePartAttributeInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.