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
Thank you for your feedback Ranjith.
I am glad that this helped you and I believe that this could be helpful for other community members as well.
Thanks. It helps.
Hello Ranjith,
Thank you for the provided details. I have spent more time on this and created a sample project for you. I am using two collections of items for the USDates and UKDates that contains a date and a description. When the user selects an item from the list the DataContext of the calendar is changed based on it. In order to apply the tooltip a MultiValueConverter is used and if the calendar start date is the same as an item from the DataContext, collection the description is returned.
I hope this solution is helpful for you.
Let me clearly explain my problem to you.
1. I have a UI where a list box will load with all country names. For each country there are different national holidays available and they are stored in the database.
2. When a user selects a country (Say U.S) and clicks on get holidays then I will fetch all holidays for U.S for a given year and I need to show all these holidays marked in a different color in the XamMonthCalendar.
3. I also have a dictionary of Holiday,holidayDescription in my database. This will be used whenever a user hovers over the mouse on a particular holiday date (Note: holidays need not necessarily be only sat and sunday) and he should be able to see a tooltip which shows what holiday the date corresponds to.
Kindly let me know if you do not get my problem yet. If so, I shall create an example project and send it.
Ranjith
Hello Chev,
I have attached a sample project that demonstrates how the IsWorkDay could be used in order to set a tooltip to the days that are marked as non-working on the calendar. I have been looking into your description and I am not completely sure how you mark the holidays. Do you set their IsEnabled property to false? Would it be possible to modify this sample project or provide another one with this implementation so I could investigate it further? Thank you.