static DatePicker() { DefaultStyleKeyProperty.OverrideMetadata( typeof(DatePicker), new FrameworkPropertyMetadata(typeof(DatePicker) )); }