Hi
I saw how to mark holidays on the calendar using the this link "http://ko.infragistics.com/community/forums/t/74325.aspx"
I have another requirement on top of this. I would like to display a tool tip when users hover over the days marked as holiday in the calendar. The challenge here is that I have a List<IHolidays> object in the view model. IHolidays interface has two properties DATE and DESCRIPTION. This is the collection I iterate over to mark the disabled dates. Now, how do I use this to bring the tool tip as well.
Thanks,
Chev
I don't seem to get you. Please note that users have option to select US, UK, China holidays from a listbox. When the country changes I populate the disableddates to include all the holidays. Hence all these holiday dates become disabled.
I apparently cannot set tooltip for disabled dates because the days are disabled. In this case how will IsWorkDay going to help me? Please note that whenever user selects a different country I populate a new list of values for the disabled dates collection. In this case how will IsWorkDay help me set the tooltip for the disabled dates. Please give me a sample project to explain.
Thanks
Hello Ranjith and thank you for contacting Infragistics!
Days that are marked as holidays in the XamMonthCalendar are enabled and the IsEnabled property is true. If you want to set the tooltip only to holidays you may use the IsWorkday property:
<Style TargetType="{x:Type ig:CalendarDay}">
<Style.Triggers>
<Trigger Property="IsWorkday" Value="False">
<Setter Property="ToolTip" Value="I am tooltip"/>
<Setter Property="Background" Value="Yellow"/>
</Trigger>
</Style.Triggers>
</Style>
Please feel free to let me know if you have any other questions on the matter.
I got this to work after having a look at this post
http://ko.infragistics.com/community/forums/p/42864/434462.aspx#434462
The above solution helps to display the tooltip for a date marked as holiday but when I use the below code (From one of the infragistics forum) to mark holidays with another color then the tooltip never appears. Can somebody please help?
<Style TargetType="{x:Type igEditors:CalendarDay}">
<Trigger Property="IsEnabled" Value="False">
<!--<Setter Property="Background" Value="PeachPuff"/>-->
Any replies please?