I have a custom control derived from Button:
class MyControl : Button{}
And suppose, this class is empty (has no members).
In the application's main window resources I use ResourceDictionary that contains styles for most WPF controls (so called theme):
<ResourceDictionary Source="BureauBlue.xaml" />
So, all controls on the window look like it is defined in that theme file. But the styles are not affected on MyControl controls. How can I do MyControl to look same as a Button controls?
Update: The style for Button in BureauBlue.xaml has no key and is defined in the following way:
<Style TargetType="{x:Type Button}" BasedOn="{x:Null}"> ...</Style>