Version

Day Property (MoreActivityIndicatorClickedEventArgs)

Returns a Day object which corresponds to the date that contains the more activity indicator that was clicked.
Syntax
'Declaration
 
Public ReadOnly Property Day As Day
public Day Day {get;}
Example
When a day displayed by the UltraMonthViewSingle control contains more activities than can be displayed given the vertical space available, the day displays a "more activity" icon. This example demonstrates how to use this event to display the UltraDayView control for the day that contains the indicator that was clicked, providing a more detailed view of the appointments for that day, emulating the behavior seen in MS Outlook.
NOTE: For the "more activity" icon to be displayed, enough activities must be added to a day so that some of them are not visible. To add 10 appointments to the ActiveDay, add a command button to your form, and replace the default 'Click' event handler with the one included below.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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;
}
Requirements

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

See Also