Posted 5 August 2019, 9:36 pm EST
- Updated 4 October 2022, 12:04 am EST
Hi,
thank you for your reply. I tested your style and it seems to work mostly. But when I expand the calendarcontrol to a large size, it displays two or more calendaritems.
I have atteched the samle:
<c1:C1Calendar HorizontalAlignment="Left" Margin="224,45,0,0" VerticalAlignment="Top"
x:Name="cal1" MonthHeaderForeground="#FFAD0A0A"
MonthHeaderFontSize="14"
MonthHeaderBackground="Transparent"
Foreground="#FFC71212"
WeekendBrush="Red"
DaysOfWeekBorderBrush="#FF6F3A9E"
TodayBrush="Yellow" MonthCount="1" MaxSelectionCount="42" Width="600" Height="600">
<c1:C1Calendar.MonthCalendarStyle>
<Style TargetType="{x:Type c1:C1CalendarItem}">
<Setter Property="Background" Value="#60FFFFE0" />
<Setter Property="ShowNextButton" Value="True" />
<Setter Property="ShowPreviousButton" Value="True" />
<Setter Property="Height" Value="600" />
<Setter Property="Width" Value="600" />
<Setter Property="DayOfWeekSlotStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.FontSize" Value="52" />
</Style>
</Setter.Value>
</Setter>
<Setter Property="DaySlotStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.FontSize" Value="52" />
</Style>
</Setter.Value>
</Setter>
</Style>
</c1:C1Calendar.MonthCalendarStyle>
</c1:C1Calendar>
And the result is:
Regards
Lutz Boscher