Back to Devexpress

StartAppointmentResizeEventArgs.ResizeHandle Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-startappointmentresizeeventargs-c1d50efc.md

latest2.9 KB
Original Source

StartAppointmentResizeEventArgs.ResizeHandle Property

Indicates whether the user drags the start or end of the appointment.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ResizeHandle ResizeHandle { get; }
vb
Public ReadOnly Property ResizeHandle As ResizeHandle

Property Value

TypeDescription
ResizeHandle

A DevExpress.Xpf.Scheduling.ResizeHandle enumeration value.

|

Available values:

NameDescription
Start

The user is dragging the appointment’s top edge.

| | End |

The user is dragging the appointment’s bottom edge.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResizeHandle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-process-appointment-drag-drop-resize-operations/CS/SchedulerDragDropResizeExample/ViewModel/MainViewModel.cs#L56

csharp
if (e.ResizeAppointment.LabelId != null)
    if ((int)e.ResizeAppointment.LabelId == 1 || e.ResizeHandle == ResizeHandle.Start)
        e.Cancel = true;

wpf-scheduler-process-appointment-drag-drop-resize-operations/VB/SchedulerDragDropResizeExample/ViewModel/MainViewModel.vb#L60

vb
If e.ResizeAppointment.LabelId IsNot Nothing Then
    If CInt(e.ResizeAppointment.LabelId) = 1 OrElse e.ResizeHandle = ResizeHandle.Start Then e.Cancel = True
End If

See Also

StartAppointmentResizeEventArgs Class

StartAppointmentResizeEventArgs Members

DevExpress.Xpf.Scheduling Namespace