menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DragDropSettings - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DragDropSettings

    Represents a class that contains settings related to appointment drag-and-drop functionality for appointments in the scheduler.

    Inheritance
    System.Object
    DragDropSettings
    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.

    • XAML
    • C#
     <schedule:SfScheduler x:Name="Scheduler"
                           View="Week">
        <schedule:SfScheduler.DragDropSettings>
           <schedule:DragDropSettings AllowNavigation="False">
           </schedule:DragDropSettings>
        </schedule:SfScheduler.DragDropSettings>
     </schedule:SfScheduler>
    this.Scheduler.View = SchedulerView.Week;
    this.Scheduler.DragDropSettings.AllowNavigation = false;
    See Also
    AllowScroll
    ShowTimeIndicator
    AutoNavigationDelay
    TimeIndicatorTextFormat
    TimeIndicatorStyle

    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.

    • XAML
    • C#
     <schedule:SfScheduler x:Name="Scheduler"
                           View="Week">
        <schedule:SfScheduler.DragDropSettings>
           <schedule:DragDropSettings AllowScroll="False">
           </schedule:DragDropSettings>
        </schedule:SfScheduler.DragDropSettings>
     </schedule:SfScheduler>
    this.Scheduler.View = SchedulerView.Week;
    this.Scheduler.DragDropSettings.AllowScroll = false;
    See Also
    AllowNavigation
    ShowTimeIndicator
    AutoNavigationDelay
    TimeIndicatorTextFormat
    TimeIndicatorStyle

    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.

    • C#
    this.Scheduler.View = SchedulerView.Week;
    this.Scheduler.DragDropSettings.AutoNavigationDelay = new TimeSpan(0, 0, 0, 0, 2000);
    See Also
    AllowNavigation
    AllowScroll
    ShowTimeIndicator
    TimeIndicatorTextFormat
    TimeIndicatorStyle

    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.

    • XAML
    • C#
     <schedule:SfScheduler x:Name="Scheduler"
                           View="Week">
        <schedule:SfScheduler.DragDropSettings>
           <schedule:DragDropSettings ShowTimeIndicator="False">
           </schedule:DragDropSettings>
        </schedule:SfScheduler.DragDropSettings>
     </schedule:SfScheduler>
    this.Scheduler.View = SchedulerView.Week;
    this.Scheduler.DragDropSettings.ShowTimeIndicator = false;
    See Also
    AllowNavigation
    AllowScroll
    AutoNavigationDelay
    TimeIndicatorTextFormat
    TimeIndicatorStyle

    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.

    • C#
    this.Scheduler.View = SchedulerView.Week;
    var timeIndicatorStyle = new SchedulerTextStyle()
    {
       TextColor = Colors.Orange,
       FontSize = 12,
    };
    this.Scheduler.DragDropSettings.TimeIndicatorStyle = timeIndicatorStyle;
    See Also
    AllowNavigation
    AllowScroll
    ShowTimeIndicator
    AutoNavigationDelay
    TimeIndicatorTextFormat

    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.

    • C#
    this.Scheduler.View = SchedulerView.Week;
    this.Scheduler.DragDropSettings.TimeIndicatorTextFormat = "hh:mm";
    See Also
    AllowNavigation
    AllowScroll
    ShowTimeIndicator
    AutoNavigationDelay
    TimeIndicatorStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved