зеркало из https://github.com/telerik/xaml-sdk.git
c94f26461f | ||
---|---|---|
.. | ||
Properties | ||
App.config | ||
App.xaml | ||
App.xaml.cs | ||
App_SL.xaml | ||
App_SL.xaml.cs | ||
AvoidOverlappingAppointments_SL.csproj | ||
AvoidOverlappingAppointments_WPF.csproj | ||
ConflictCheckingDragDropBehavior.cs | ||
Example.xaml | ||
Example.xaml.cs | ||
MainPage.xaml | ||
MainPage.xaml.cs | ||
MainWindow.xaml | ||
MainWindow.xaml.cs | ||
Readme.md | ||
ViewModel.cs |
Readme.md
Avoid Overlapping Appointments
This example demonstrates how you could prevent overlapping appointments when drag-and-drop or resize an appointment. In order to achieve it you should create a custom DragDropBehavior and check in CanDrop and CanResize methods whether the destination slot contains any appointments. Additionally, you should customize the RecurrenceChoiceDragDropDialog to handle the case when a whole series of a recurrent appointment is dragged.