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
380
Display tooltip on certain dates
posted

I've implemented a CalendarDayStyleSelector to higlight certain dates (holidays in this case for an HR application). I know I can set the tooltip manually in the setter of the tooltip property:

<Style x:Key="Holiday"
 TargetType="{x:Type igEditors:CalendarDay}">
        <Setter Property="Background"
         Value="#FFF2F257" />
        <Setter Property="ToolTip"
                    Value="Holiday" />
</Style>

This sets the tooltip for al of the selected dates to "Holiday"

How can I set a tooltip for the date itself? For examle, if I hover over 7/4/10, I want the tooltip to display "Independence Day" I know I want to bind the data - just a little lost on what to bind it to and what the XAML syntax would look like. Thanks!

Bob