Class DragDropSettings
Represents a class that contains settings related to appointment drag-and-drop functionality for appointments in the scheduler.
Inheritance
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class DragDropSettings : Object
Constructors
DragDropSettings()
Initializes a new instance of the DragDropSettings class.
Declaration
public DragDropSettings()
Properties
AllowNavigation
Gets or sets a value indicating whether the user can navigate views while dragging the appointment or not.
Declaration
public bool AllowNavigation { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
The below examples shows, how to use the AllowNavigation property of DragDropSettings in the SfScheduler.
<schedule:SfScheduler x:Name="Scheduler"
View="Week">
<schedule:SfScheduler.DragDropSettings>
<schedule:DragDropSettings AllowNavigation="False">
</schedule:DragDropSettings>
</schedule:SfScheduler.DragDropSettings>
</schedule:SfScheduler>
See Also
AllowScroll
Gets or sets a value indicating whether the user can scroll the time slot while dragging the appointment or not.
Declaration
public bool AllowScroll { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
The below examples shows, how to use the AllowScroll property of DragDropSettings in the SfScheduler.
<schedule:SfScheduler x:Name="Scheduler"
View="Week">
<schedule:SfScheduler.DragDropSettings>
<schedule:DragDropSettings AllowScroll="False">
</schedule:DragDropSettings>
</schedule:SfScheduler.DragDropSettings>
</schedule:SfScheduler>
See Also
AutoNavigationDelay
Gets or sets the auto navigation time delay while dragging an appointment within the scheduler control.
Declaration
public TimeSpan AutoNavigationDelay { get; set; }
Property Value
Type |
---|
System.TimeSpan |
Examples
The below examples shows, how to use the AutoNavigationDelay property of DragDropSettings in the SfScheduler.
this.Scheduler.View = SchedulerView.Week;
this.Scheduler.DragDropSettings.AutoNavigationDelay = new TimeSpan(0, 0, 0, 0, 2000);
See Also
ShowTimeIndicator
Gets or sets a value indicating whether the drag and drop indicator should be displayed within the scheduler control during appointment dragging.
Declaration
public bool ShowTimeIndicator { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
The below examples shows, how to use the ShowTimeIndicator property of DragDropSettings in the SfScheduler.
<schedule:SfScheduler x:Name="Scheduler"
View="Week">
<schedule:SfScheduler.DragDropSettings>
<schedule:DragDropSettings ShowTimeIndicator="False">
</schedule:DragDropSettings>
</schedule:SfScheduler.DragDropSettings>
</schedule:SfScheduler>
See Also
TimeIndicatorStyle
Gets or sets the style of the drag and drop indicator displayed during appointment dragging within the scheduler control.
Declaration
public SchedulerTextStyle TimeIndicatorStyle { get; set; }
Property Value
Type |
---|
SchedulerTextStyle |
Examples
The below examples shows, how to use the TimeIndicatorStyle property of DragDropSettings in the SfScheduler.
this.Scheduler.View = SchedulerView.Week;
var timeIndicatorStyle = new SchedulerTextStyle()
{
TextColor = Colors.Orange,
FontSize = 12,
};
this.Scheduler.DragDropSettings.TimeIndicatorStyle = timeIndicatorStyle;
See Also
TimeIndicatorTextFormat
Gets or sets the display format for the time indicator that appears when an appointment is dragged and dropped within the scheduler control's day, week, workweek, timeline day, timeline week, and timeline workweek views.
Declaration
public string TimeIndicatorTextFormat { get; set; }
Property Value
Type |
---|
System.String |
Remarks
The "DragTimeIndicatorTextFormat" property allows to specify a custom display format for the time indicator that appears when an appointment is dragged and dropped within the scheduler control's various views. This property can be set to a valid custom date and time format string, as defined in the .NET documentation. When the appointment drag time indicator overlaps with the time ruler label position in a day, week, or workweek view, the time ruler label format specified in the "TimeSlotViewSettings.TimeRulerFormat" property will be used to display the time indicator.
Examples
The below examples shows, how to use the TimeIndicatorTextFormat property of DragDropSettings in the SfScheduler.
this.Scheduler.View = SchedulerView.Week;
this.Scheduler.DragDropSettings.TimeIndicatorTextFormat = "hh:mm";