Version

AfterScroll Event (UltraMonthViewSingleBase)

Fired after the UltraMonthViewSingle or UltraWeekView control is scrolled
Syntax
'Declaration
 
Public Event AfterScroll As AfterScrollEventHandler
public event AfterScrollEventHandler AfterScroll
Event Data

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

PropertyDescription
ScrollAction Returns the scroll action that was taken
Remarks

If the BeforeScroll event is canceled, the AfterScroll event will not fire.

Example
This example outputs the type of scrolling operation that was peformed 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 UltraMonthViewSingle1_AfterScroll(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterScrollEventArgs) Handles ultraMonthViewSingle.AfterScroll

    '----------------------------------------------------------------------------------------------------
    '	Description
    '	AfterScroll
    '
    '	Fires after the control is scrolled.
    '	If the BeforeScroll event is not canceled, the AfterScroll event fires.
    '
    '----------------------------------------------------------------------------------------------------

    '	Output the old and new values to the debugger
    Dim info As String = String.Empty
    info += "The control was vertically scrolled. The type of scrolling operation was: "
    info += e.ScrollAction.ToString()

    Debug.WriteLine(info)
End Sub
private void ultraMonthViewSingle1_AfterScroll(object sender, Infragistics.Win.UltraWinSchedule.AfterScrollEventArgs e)
{
	//----------------------------------------------------------------------------------------------------
	//	Description
	//	AfterScroll
	//
	//	Fires after the control is scrolled.
	//	If the BeforeScroll event is not canceled, the AfterScroll event fires.
	//
	//----------------------------------------------------------------------------------------------------
		
	//	Output the old and new values to the debugger
	string info = string.Empty;			
	info += "The control was vertically scrolled. The type of scrolling operation was: ";
	info += e.ScrollAction.ToString();

	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