Version

AppointmentResized Event

Event fired when an appointment is resized by the end user.
Syntax
'Declaration
 
Public Event AppointmentResized As AppointmentResizedHandler
public event AppointmentResizedHandler AppointmentResized
Event Data

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

PropertyDescription
Appointment Returns the Appointment on which the resize operation has been performed.
EnterEditMode Returns or sets whether an edit mode session should begin on the appointment immediately following the firing of the event.
ResizeType Returns whether the StartDateTime or EndDateTime of the associated appointment(s) has been modified by the resize operation.
Remarks

The AppointmentResized event notifies a listener than the user has completed an appointment resizing operation, and that the operation was not canceled. The EnterEditMode property can be used to determine whether the resized appointment automatically enters edit mode when the resize operation has been completed.

Example
The following code sample demonstrates how to use the AppointmentResized event to receive a notification after an Appointment has been resized, and how to automatically enter edit mode on the Appointment:

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.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.Diagnostics

    AddHandler Me.dayView.AppointmentResized, AddressOf OnAppointmentsResized

    Private Sub OnAppointmentsResized(ByVal sender As Object, ByVal e As AppointmentResizedEventArgs)

        '  MS Outlook enters edit mode on an appointment after a resize
        '  operation is completed; set the 'EnterEditMode' property of the
        '  event arguments to true to emulate this behavior.
        e.EnterEditMode = True
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

this.dayView.AppointmentResized += new AppointmentResizedHandler(OnAppointmentResized);

private void OnAppointmentResized(object sender, AppointmentResizedEventArgs e)
{
    //  MS Outlook enters edit mode on an appointment after a resize
    //  operation is completed; set the 'EnterEditMode' property of the
    //  event arguments to true to emulate this behavior.
    e.EnterEditMode = 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