Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
580
How to customize the style of seleted dates in XamMonthCalendar
posted

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.

 

Parents
  • 138253
    Verified Answer
    Offline posted

    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.

Reply Children
No Data