private static void OnDayContainerStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ((MonthCalendar)d).RefreshDayTemplate(); }