WPF DefaultStyleKey vs DefaultStyleKeyProperty.OverrideMetadata
Alvaro Rivoir
6
Reputation points
What is the difference between these
static XXXXXXX()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(XXXXXXX),
new System.Windows.FrameworkPropertyMetadata(typeof(XXXXXXX)));
}
and
public XXXXXXX()
{
DefaultStyleKey = typeof(C1XXXXXXX);
}
Sign in to answer