Private Sub UltraMonthViewSingle1_MoreActivityIndicatorClicked(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinSchedule.MoreActivityIndicatorClickedEventArgs) Handles ultraMonthViewSingle1.MoreActivityIndicatorClicked ' Get a reference to the day that contains the indicator that was clicked Dim day as Infragistics.Win.UltraWinSchedule.Day = e.Day Dim date As DateTime = day.Date ' Activate the day that contains the indicator that was clicked Me.ultraCalendarInfo1.ActiveDay = day ' Select the day that contains the indicator that was clicked Me.ultraCalendarInfo1.SelectedDateRanges.Clear() Me.ultraCalendarInfo1.SelectedDateRanges.Add( date ) ' Hide the UltraMonthViewSingleBase-derived control since we are ' going to show the UltraDayView control. Dim senderControl As UltraMonthViewSingleBase = sender senderControl.Visible = false ' Show the UltraDayView control since UltraDayView displays ' the contents of the SelectedDateRanges collection, the day ' that contains the indicator that was clicked will now be ' visible in the UltraDayView control. Me.ultraDayView1.Visible = true End Sub
private void ultraMonthViewSingle1_MoreActivityIndicatorClicked(object sender, Infragistics.Win.UltraWinSchedule.MoreActivityIndicatorClickedEventArgs e) { // Get a reference to the day that contains the indicator that was clicked Infragistics.Win.UltraWinSchedule.Day day = e.Day; DateTime date = day.Date; // Activate the day that contains the indicator that was clicked this.ultraCalendarInfo1.ActiveDay = day; // Select the day that contains the indicator that was clicked this.ultraCalendarInfo1.SelectedDateRanges.Clear(); this.ultraCalendarInfo1.SelectedDateRanges.Add( date ); // Hide the UltraMonthViewSingleBase-derived control since we are // going to show the UltraDayView control. UltraMonthViewSingleBase senderControl = sender as UltraMonthViewSingleBase; senderControl.Visible = false; // Show the UltraDayView control; since UltraDayView displays // the contents of the SelectedDateRanges collection, the day // that contains the indicator that was clicked will now be // visible in the UltraDayView control. this.ultraDayView1.Visible = true; }
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