Determines what is displayed in the tooltip when the mouse is hovered over a day object.
This example sets TipStyle property such that we optimize the displaying of tooltips to show only the most prevalent type of activity for the currently visible month(s).
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti
Private Sub SetupTipStyle()
' Get a count on each activity type for the currently visible month(s)
Dim appointments As Integer = 0, holidays As Integer = 0, notes As Integer = 0
Dim month As Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth
For Each month In Me.ultraMonthViewMulti1.VisibleMonths
appointments += month.Month.Appointments.Count
holidays += month.Month.Holidays.Count
notes += month.Month.Notes.Count
Next
' Set the TipStyle property so that only the most prevalent type
' of activity for the currently visible months is displayed in the tooltip
If (appointments > holidays And appointments > notes) Then
Me.ultraMonthViewMulti1.TipStyle = TipStyleDay.Appointments
ElseIf (holidays > appointments And holidays > notes) Then
Me.ultraMonthViewMulti1.TipStyle = TipStyleDay.Holidays
ElseIf (notes > appointments And notes > holidays) Then
Me.ultraMonthViewMulti1.TipStyle = TipStyleDay.Notes
Else
' If no one type of activity was any more prevalent than
' the other types, set the TipStyle to None
Me.ultraMonthViewMulti1.TipStyle = TipStyleDay.None
End If
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewMulti;
private void SetupTipStyle()
{
// Get a count on each activity type for the currently visible month(s)
int appointments = 0, holidays = 0, notes = 0;
foreach ( Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth month in this.ultraMonthViewMulti1.VisibleMonths )
{
appointments += month.Month.Appointments.Count;
holidays += month.Month.Holidays.Count;
notes += month.Month.Notes.Count;
}
// Set the TipStyle property so that only the most prevalent type
// of activity for the currently visible months is displayed in the tooltip
if ( appointments > holidays && appointments > notes )
this.ultraMonthViewMulti1.TipStyle = TipStyleDay.Appointments;
else
if ( holidays > appointments && holidays > notes )
this.ultraMonthViewMulti1.TipStyle = TipStyleDay.Holidays;
else
if ( notes > appointments && notes > holidays )
this.ultraMonthViewMulti1.TipStyle = TipStyleDay.Notes;
else
// If no one type of activity was any more prevalent than
// the other types, set the TipStyle to None
this.ultraMonthViewMulti1.TipStyle = TipStyleDay.None;
}
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2