I have a Custom Control which uses some PART controls:
[TemplatePart(Name = \"PART_TitleTextBox\", Type = typeof(TextBox))]
[TemplatePart(Name = \"PART_Titl
For anyone else who might stumble upon this post, I was having the same issue and I managed to solve it by adding the following into the AssemblyInfo.cs of the project containing my custom control:
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
My control's template is located in the file Theme/Generic.xaml in the same project as the control.