{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-drag-and-drop",
  "framework": "wpf",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "drag-and-drop",
  "dependencies": [
    "Syncfusion.SfScheduler.WPF"
  ],
  "description": "SfSchedule with drag-and-drop rescheduling of appointments across time slots and calendar dates.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/wpf/llms.txt",
    "skillPack": "syncfusion/wpf-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/wpf/scheduler-drag-and-drop.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-drag-and-drop/Scheduler.xaml",
      "content": "<UserControl x:Class=\"syncfusion.schedulerdemos.wpf.DragAndDrop.Scheduler\"\n        xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n        xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n        xmlns:interactivity=\"http://schemas.microsoft.com/xaml/behaviors\"\n        xmlns:syncfusion=\"http://schemas.syncfusion.com/wpf\"\n        xmlns:local=\"clr-namespace:syncfusion.schedulerdemos.wpf\" Unloaded=\"OnSampleUnloaded\">\n\n    <UserControl.Resources>\n        <local:ImageTemplateSelector x:Key=\"imageTemplateSelector\"/>\n    </UserControl.Resources>\n\n    <UserControl.DataContext>\n        <local:BindingViewModel/>\n    </UserControl.DataContext>\n\n    <Grid>\n        <Grid.ColumnDefinitions>\n            <ColumnDefinition Width=\"Auto\"/>\n            <ColumnDefinition Width=\"*\"/>\n        </Grid.ColumnDefinitions>\n\n        <syncfusion:SfScheduler x:Name=\"Schedule\" Grid.Column=\"1\" BorderThickness=\"1,0,0,0\"\n                                AllowDrop=\"True\" ItemsSource=\"{Binding SchedulerAppointmentCollection}\"\n                                ViewType=\"Week\"\n                                AllowedViewTypes=\"Month,Day,Week,WorkWeek\"\n                                DisplayDate=\"{Binding DisplayDate}\">\n            <syncfusion:SfScheduler.AppointmentMapping>\n                <syncfusion:AppointmentMapping\n                Subject=\"EventName\"\n                StartTime=\"From\"\n                EndTime=\"To\"\n                AppointmentBackground=\"Color\"\n                Foreground=\"ForegroundColor\"\n                IsAllDay=\"IsAllDay\"\n                StartTimeZone=\"StartTimeZone\"\n                EndTimeZone=\"EndTimeZone\"\n                Notes=\"Notes\"\n                RecurrenceExceptionDates=\"RecurrenceExceptions\"\n                RecurrenceRule=\"RecurrenceRule\"\n                RecurrenceId=\"RecurrenceId\"/>\n            </syncfusion:SfScheduler.AppointmentMapping>\n            <syncfusion:SfScheduler.DaysViewSettings>\n                <syncfusion:DaysViewSettings MinimumAppointmentDuration=\"0:30:0\"/>\n            </syncfusion:SfScheduler.DaysViewSettings>\n            <interactivity:Interaction.Triggers>\n                <interactivity:EventTrigger EventName=\"Loaded\">\n                    <local:SchedulerDragAndDropBehavior TargetObject=\"{Binding ElementName=listView}\"/>\n                </interactivity:EventTrigger>\n            </interactivity:Interaction.Triggers>\n        </syncfusion:SfScheduler>\n\n        <StackPanel>\n            <Label Content=\"To Do\" x:Name=\"label\" BorderThickness=\"0,0,0,0.5\" Height=\"28\" HorizontalContentAlignment=\"Center\" VerticalContentAlignment=\"Center\" Margin=\"0,4,0,10\" FontWeight=\"Bold\" BorderBrush=\"{Binding ElementName=listView, Path=BorderBrush}\"/>\n            <ListView ScrollViewer.HorizontalScrollBarVisibility=\"Hidden\" x:Name=\"listView\" ItemsSource=\"{Binding ListAppointmentCollection}\" IsEnabled=\"True\" AllowDrop=\"True\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Top\" Height=\"570\" Width=\"235\">\n                <ListView.Resources>\n                    <Style TargetType=\"GridViewColumnHeader\">\n                        <Setter Property=\"Visibility\" Value=\"Collapsed\" />\n                    </Style>\n                </ListView.Resources>\n                <ListView.View>\n                    <GridView>\n                        <GridViewColumn>\n                            <GridViewColumn.CellTemplate>\n                                <DataTemplate>\n                                    <Border CornerRadius=\"3\" Background=\"{Binding Color}\" Margin=\"0,4,0,4\" AllowDrop=\"True\">\n                                        <Grid Height=\"65\" AllowDrop=\"True\">\n                                            <Grid.RowDefinitions>\n                                                <RowDefinition Height=\"Auto\"/>\n                                                <RowDefinition Height=\"*\"/>\n                                            </Grid.RowDefinitions>\n                                            <WrapPanel>\n                                                <TextBlock Margin=\"5,10,5,5\" Width=\"143\" FontWeight=\"Bold\" HorizontalAlignment=\"Left\" AllowDrop=\"True\" Text=\"{Binding EventName}\" Foreground=\"{Binding ForegroundColor}\" FontSize=\"12\"/>\n                                                <Label Width=\"30\" ContentTemplate=\"{Binding EventName, Converter={StaticResource imageTemplateSelector}}\" Margin=\"18,3,0,0\"/>\n                                            </WrapPanel>\n                                            <TextBlock Margin=\"3,0,0,5\" Width=\"190\" HorizontalAlignment=\"Left\" AllowDrop=\"True\" Text=\"{Binding Notes}\" Grid.Row=\"1\" Foreground=\"{Binding ForegroundColor}\" TextWrapping=\"Wrap\" FontSize=\"10\"/>\n                                        </Grid>\n                                    </Border>\n                                </DataTemplate>\n                            </GridViewColumn.CellTemplate>\n                        </GridViewColumn>\n                    </GridView>\n                </ListView.View>\n                <interactivity:Interaction.Triggers>\n                    <interactivity:EventTrigger EventName=\"Loaded\">\n                        <local:ListViewDragAndDropBehavior TargetObject=\"{Binding ElementName=Schedule}\"/>\n                    </interactivity:EventTrigger>\n                </interactivity:Interaction.Triggers>\n            </ListView>\n        </StackPanel>\n    </Grid>\n</UserControl>\n"
    }
  ]
}