Version

AfterDisplayMonthPopup Event (UltraMonthViewMulti)

Fired after a month popup is displayed.
Syntax
'Declaration
 
Public Event AfterDisplayMonthPopup As AfterDisplayMonthPopupEventHandler
public event AfterDisplayMonthPopupEventHandler AfterDisplayMonthPopup
Event Data

The event handler receives an argument of type AfterDisplayMonthPopupEventArgs containing data related to this event. The following AfterDisplayMonthPopupEventArgs properties provide information specific to this event.

PropertyDescription
Month Returns the month for which the popup was displayed.
MonthScrollingTo Returns the month which the control will scroll to. Null if the user did not select a month.
Remarks

The AfterDisplayMonthPopupEventArgs.Month property returns the Month object whose Infragistics.Win.UltraWinSchedule.MonthViewMulti.MonthHeaderAreaUIElement was clicked upon. The AfterDisplayMonthPopupEventArgs.MonthScrollingTo returns the Month object that the selected to scroll to or null (Nothing in VB) if the mouse was released outside the Infragistics.Win.UltraWinSchedule.MonthViewMulti.UltraMonthPopupControl.

Example
This example outputs information about the month for which the popup was displayed, and the month to which it was scrolled, to the debugger.

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 ultraMonthViewMulti1_AfterDisplayMonthPopup(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterDisplayMonthPopupEventArgs) Handles ultraMonthViewMulti1.AfterDisplayMonthPopup

    '	Get the name of the month for which the popup was displayed
    Dim oldMonthName As String = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.MonthNames(e.Month.MonthNumber - 1)

    '	Get the name of the month that was scrolled to
    Dim newMonthName As String = String.Empty
    If (Not e.MonthScrollingTo Is Nothing) Then
        '	Ge the name of the month we are scrolling to
        newMonthName = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.MonthNames(e.MonthScrollingTo.MonthNumber - 1)

        '	Output information about the event to the debugger
        Dim info As String = String.Empty
        info = "The popup was displayed for the month of " + oldMonthName + vbCrLf
        info += "The popup was scrolled to the month of " + newMonthName + vbCrLf

        System.Diagnostics.Debug.WriteLine(info)
    End If

End Sub
private void ultraMonthViewMulti1_AfterDisplayMonthPopup(object sender, Infragistics.Win.UltraWinSchedule.AfterDisplayMonthPopupEventArgs e)
{

	//	Get the name of the month for which the popup was displayed
	string oldMonthName = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.MonthNames[ e.Month.MonthNumber -1 ];
	
	//	Get the name of the month that was scrolled to
	string newMonthName = string.Empty;
	if ( e.MonthScrollingTo != null )
	{
		//	Ge the name of the month we are scrolling to
		newMonthName = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.MonthNames[ e.MonthScrollingTo.MonthNumber -1 ];

		//	Output information about the event to the debugger
		string info = string.Empty;
		info = "The popup was displayed for the month of " + oldMonthName + "\n";
		info += "The popup was scrolled to the month of " + newMonthName + "\n";

		System.Diagnostics.Debug.WriteLine( info );
	}

}
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