File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
MaterialDesignThemes.Wpf/Themes Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 651
651
</Setter >
652
652
</Style >
653
653
654
- <Style x : Key =" MaterialDesignCalendarPortrait " TargetType =" {x:Type Calendar}" >
654
+ <Style x : Key =" MaterialDesignCalendarPortraitBase " TargetType =" {x:Type Calendar}" >
655
655
<Setter Property =" Foreground" Value =" {DynamicResource MaterialDesignBody}" />
656
656
<Setter Property =" Background" Value =" {DynamicResource MaterialDesignPaper}" />
657
657
<Setter Property =" SnapsToDevicePixels" Value =" true" />
666
666
<ControlTemplate TargetType =" {x:Type Calendar}" >
667
667
<CalendarItem
668
668
x : Name =" PART_CalendarItem"
669
- Style =" {DynamicResource MaterialDesignCalendarItemPortrait }"
669
+ Style =" {TemplateBinding CalendarItemStyle }"
670
670
BorderBrush =" {TemplateBinding BorderBrush}"
671
671
BorderThickness =" {TemplateBinding BorderThickness}"
672
672
Background =" {TemplateBinding Background}"
681
681
</Setter >
682
682
</Style >
683
683
684
+ <Style x : Key =" MaterialDesignCalendarPortrait" TargetType =" Calendar" BasedOn =" {StaticResource MaterialDesignCalendarPortraitBase}" >
685
+ <Setter Property =" CalendarItemStyle" Value =" {StaticResource MaterialDesignCalendarItemPortrait}" />
686
+ </Style >
687
+
684
688
<Style x : Key =" MaterialDesignCalendarPortraitForeground" TargetType =" Calendar" BasedOn =" {StaticResource MaterialDesignCalendarPortrait}" >
685
689
<Setter Property =" wpf:CalendarAssist.HeaderBackground" Value =" Transparent" />
686
690
<Setter Property =" wpf:CalendarAssist.HeaderForeground" Value =" {DynamicResource MaterialDesignBody}" />
You can’t perform that action at this time.
0 commit comments