I have a lookless control I've built that has a default style defined in generic.xaml in my Themes directory. I also have the following in the constructor.
static MyControl()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(MyControl), new FrameworkPropertyMetadata(typeof(MyControl)));
}
public MyControl()
{
//DoSomeWork
}
Is there something else I'm suppose to set in WPF land? In Silverlight all I have to do is:
DefaultStyleKey = typeof(MyControl);
NOTE: It does render in Expression Blend though.