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 651651 </Setter >
652652 </Style >
653653
654- <Style x : Key =" MaterialDesignCalendarPortrait " TargetType =" {x:Type Calendar}" >
654+ <Style x : Key =" MaterialDesignCalendarPortraitBase " TargetType =" {x:Type Calendar}" >
655655 <Setter Property =" Foreground" Value =" {DynamicResource MaterialDesignBody}" />
656656 <Setter Property =" Background" Value =" {DynamicResource MaterialDesignPaper}" />
657657 <Setter Property =" SnapsToDevicePixels" Value =" true" />
666666 <ControlTemplate TargetType =" {x:Type Calendar}" >
667667 <CalendarItem
668668 x : Name =" PART_CalendarItem"
669- Style =" {DynamicResource MaterialDesignCalendarItemPortrait }"
669+ Style =" {TemplateBinding CalendarItemStyle }"
670670 BorderBrush =" {TemplateBinding BorderBrush}"
671671 BorderThickness =" {TemplateBinding BorderThickness}"
672672 Background =" {TemplateBinding Background}"
681681 </Setter >
682682 </Style >
683683
684+ <Style x : Key =" MaterialDesignCalendarPortrait" TargetType =" Calendar" BasedOn =" {StaticResource MaterialDesignCalendarPortraitBase}" >
685+ <Setter Property =" CalendarItemStyle" Value =" {StaticResource MaterialDesignCalendarItemPortrait}" />
686+ </Style >
687+
684688 <Style x : Key =" MaterialDesignCalendarPortraitForeground" TargetType =" Calendar" BasedOn =" {StaticResource MaterialDesignCalendarPortrait}" >
685689 <Setter Property =" wpf:CalendarAssist.HeaderBackground" Value =" Transparent" />
686690 <Setter Property =" wpf:CalendarAssist.HeaderForeground" Value =" {DynamicResource MaterialDesignBody}" />
You can’t perform that action at this time.
0 commit comments