I have set the color of holiday by CalendarDay's background. But when i select dates, the select color cover the holiday color.
How to customize the style of seleted dates in XamMonthCalendar.
I want the selected dates look like to get 50% transparent or something like the effect.
Hello,
Thank you for your post. I have been looking into it and I suggest you add the following Style for the CalendarDay in the XamMonthCalendar’s Resources:
<Style TargetType="{x:Type igEditors:CalendarDay}"> <Style.Triggers> <Trigger Property="IsWorkday" Value="False"> <Setter Property="Background" Value="Purple"/> </Trigger> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="IsSelected" Value="True"/> <Condition Property="IsWorkday" Value="False"/> </MultiTrigger.Conditions> <MultiTrigger.Setters> <Setter Property="Opacity" Value="0.5"/> <Setter Property="Background" Value="Purple"/> </MultiTrigger.Setters> </MultiTrigger> </Style.Triggers> </Style>
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thank you very much.
It works well.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.