従来の動作をサポートするために、アクテイブな owner を変更する場合 SelectedAppointments コレクションがクリアされます。これを防止するには、ClearSelectedAppointments プロパティを False に設定します。
StretchStretchStretchImports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports System.Diagnostics AddHandler Me.dayView.AppointmentsDragDrop, AddressOf OnAppointmentsDragDrop Private Sub OnAppointmentsDragDrop(ByVal sender As Object, ByVal e As AppointmentsDragDropEventArgs) ' By default, the appointment selection is cleared when ownership ' of the appointments changes. Setting 'ClearSelectedAppointments' ' to false prevents this from happening. e.ClearSelectedAppointments = false End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using System.Diagnostics; this.dayView.AppointmentsDragDrop += new AppointmentsDragDropHandler(OnAppointmentsDragDrop); private void OnAppointmentsDragDrop(object sender, AppointmentsDragDropEventArgs e) { // By default, the appointment selection is cleared when ownership // of the appointments changes. Setting 'ClearSelectedAppointments' // to false prevents this from happening. e.ClearSelectedAppointments = this.chkClearSelection.Checked; }