Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@
</Setter>
</Style>

<Style x:Key="MaterialDesignCalendarPortrait" TargetType="{x:Type Calendar}">
<Style x:Key="MaterialDesignCalendarPortraitBase" TargetType="{x:Type Calendar}">
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}"/>
<Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" />
<Setter Property="SnapsToDevicePixels" Value="true"/>
Expand All @@ -666,7 +666,7 @@
<ControlTemplate TargetType="{x:Type Calendar}">
<CalendarItem
x:Name="PART_CalendarItem"
Style="{DynamicResource MaterialDesignCalendarItemPortrait}"
Style="{TemplateBinding CalendarItemStyle}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}"
Expand All @@ -681,6 +681,10 @@
</Setter>
</Style>

<Style x:Key="MaterialDesignCalendarPortrait" TargetType="Calendar" BasedOn="{StaticResource MaterialDesignCalendarPortraitBase}">
<Setter Property="CalendarItemStyle" Value="{StaticResource MaterialDesignCalendarItemPortrait}" />
</Style>

<Style x:Key="MaterialDesignCalendarPortraitForeground" TargetType="Calendar" BasedOn="{StaticResource MaterialDesignCalendarPortrait}">
<Setter Property="wpf:CalendarAssist.HeaderBackground" Value="Transparent"/>
<Setter Property="wpf:CalendarAssist.HeaderForeground" Value="{DynamicResource MaterialDesignBody}"/>
Expand Down