Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class AppointmentResizingBehavior
Inheritance: objectAppointmentResizingBehavior
Constructors
public AppointmentResizingBehavior(SchedulerVisualElement activeOwner)
Fields
protected bool downResize
protected bool leftResize
protected float resizeStepOffset
protected bool rightResize
Properties
Gets or sets the active resizing appointment.
public IEvent ActiveAppointment { get; }
Gets or sets a value indicating whether the appointment areas in DayView should be automatically scrolled when dragging off their bounds.
public bool AutoScrollDayViewOnResize { get; set; }
Gets or sets the bounds offset which specifies the size of the sizing rectangles.
public int CursorBoundsOffset { get; set; }
Gets or sets whether the user is currently resizing the active appointment.
public virtual bool IsResizing { get; }
Gets or sets the resize minutes.
public int ResizeMinutes { get; set; }
Methods
protected virtual ResizeOptions GetResizeOptions(SchedulerVisualElement owner)
protected virtual bool HandleAppointmentHorizontalResize(SchedulerCellElement cell, IEvent appointment)
protected virtual bool HandleAppointmentVerticalResize(SchedulerCellElement cell, IEvent appointment)
protected virtual void OnAppointmentResized(AppointmentResizedEventArgs args)
protected virtual void OnAppointmentResizing(AppointmentResizingEventArgs cancelArgs)
Requests a resize start.
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, bool start)
Requests a resize start.
public virtual bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions, bool start)
Requests a resize start.
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions)
Requests a resize start.
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner)
protected virtual void UpdateMouseCursor()
Updates the current mouse cursor.
protected virtual bool UpdateMouseCursor(Point mousePosition, Rectangle nearRect, Rectangle farRect)
The current position
nearRectRectangleThe top or left area of the appointment which can start a resize
farRectRectangleThe bottom or right area of the appointment which can start a resize
Returns:True if the mouse position is in a resize location, false otherwise.
public void UpdateResizeOptions(ResizeOptions resizeOptions)
Events
Occurs when the appointment is resized.
public event EventHandler<AppointmentResizedEventArgs> AppointmentResized
Occurs when the appointment is resizing.
public event EventHandler<AppointmentResizingEventArgs> AppointmentResizing
Occurs when the resizing operation is finished.
public event EventHandler<SchedulerAppointmentEventArgs> Finished
Occurs when the rezing request is initialized.
public event EventHandler Initialized