Understanding Generic.xaml, theme resource dictionaries, and default styles for WPF custom controls
Default styles for WPF controls are discovered through a theme-aware resource lookup. When a control is instantiated, WPF searches for a Style keyed by the control’s DefaultStyleKey (by default, the control’s Type) in the Themes folder of the control’s assembly. If a theme-specific dictionary exists...