Class DragDropSettings
Represents a class that contains appointment drag-and-drop settings.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.Scheduler.WinUI.dll
Syntax
public class DragDropSettings : Object, IDisposable
Constructors
DragDropSettings()
Initializes a new instance of the DragDropSettings class.
Declaration
public DragDropSettings()
Properties
AllowNavigate
Gets or sets a value indicating whether can navigate views while dragging the appointment or not.
Declaration
public bool AllowNavigate { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowScroll
Gets or sets a value indicating whether can scroll the time slot while dragging the appointment or not.
Declaration
public bool AllowScroll { get; set; }
Property Value
Type |
---|
System.Boolean |
AutoNavigationDelay
Gets or sets the auto navigation time delay while dragging the appointment.
Declaration
public TimeSpan AutoNavigationDelay { get; set; }
Property Value
Type |
---|
System.TimeSpan |
ShowTimeIndicator
Gets or sets a value indicating whether drag and drop indicator need to be shown or not.
Declaration
public bool ShowTimeIndicator { get; set; }
Property Value
Type |
---|
System.Boolean |
TimeIndicatorFormat
Gets or sets the display format https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings for the time indicator that denotes the dropping position of the appointment when you drag and drop the appointments in the day, week, workweek, timeline day, timeline week and timeline workweek views.
Declaration
public string TimeIndicatorFormat { get; set; }
Property Value
Type |
---|
System.String |
Remarks
Displays the time ruler label format TimeRulerFormat, when the appointment drag time indicator overlaps with the time ruler label position in a day, week, and workweek views.
Examples
#C#
this.Schedule.DragDropSettings.TimeIndicatorFormat = "hh:mm tt";
#Xaml
<?xml version = "1.0" encoding="utf-8"?>
<syncfusion:SfScheduler x:Name="Schedule">
<scheduler:SfScheduler.DragDropSettings>
<scheduler:DragDropSettings TimeIndicatorFormat="hh:mm tt"/>
</scheduler:SfScheduler.DragDropSettings>
</syncfusion:SfScheduler>
Methods
Dispose()
Disposes all the resources used by the DragDropSettings class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DragDropSettings class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a System.GC.SuppressFinalize(System.Object). |