When the AutoAppointmentDialog property is set to True and the user double-clicks on an existing Appointment, the dialog is pre-populated with the associated property values of that Appointment and displayed.
When the user double-clicks inside the day area of the control, the dialog is pre-populated with that day's date. By default, the dialog's 'All Day Event' checkbox (which corresponds to the appointment's Appointment.AllDayEvent property) is checked, and the start and end times of the Appointment are not displayed. If the checkbox is unchecked, the start and end times are displayed, with values that are determined by the DayOfWeek.WorkDayStartTime and DayOfWeek.WorkDayEndTime properties, respectively.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle Private Sub EnableAutoAppointmentDialog( enable As Boolean ) ' If the control is null, being disposed of, ' or has been disposed of, return, since we can't set its properties ' If Me.ultraMonthViewSingle1 Is Nothing Or Me.ultraMonthViewSingle1.Disposing Or Me.ultraMonthViewSingle1.IsDisposed Then Return ' AutoAppointmentDialog - determines whether the AppointmentDialog is displayed when ' the user double-clicks on the day area of the control. ' ' Some applications might want to perform a special action when the control is double-clicked. ' In those cases, the AutoAppointmentDialog property should be set to false, which prevents ' the dialog from being displayed on a double-click. When the property is set to true, however, ' the AppointmentDialog is displayed on a double-click. If the cursor position at the time of the ' double-click is over an existing appointment, the dialog fields are pre-populated with that ' appointment's information (Subject, Location, StartDateTime, EndDateTime, etc.) If there ' is no appointment at that location, the dialog is initialized for a new appointment. Me.ultraMonthViewSingle1.AutoAppointmentDialog = enable End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewSingle; using System.Diagnostics; private void EnableAutoAppointmentDialog( bool enable ) { // If the control is null, being disposed of, // or has been disposed of, return, since we can't set its properties // if ( this.ultraMonthViewSingle1 == null || this.ultraMonthViewSingle1.Disposing || this.ultraMonthViewSingle1.IsDisposed ) return; // AutoAppointmentDialog - determines whether the AppointmentDialog is displayed when // the user double-clicks on the day area of the control. // // Some applications might want to perform a special action when the control is double-clicked. // In those cases, the AutoAppointmentDialog property should be set to false, which prevents // the dialog from being displayed on a double-click. When the property is set to true, however, // the AppointmentDialog is displayed on a double-click. If the cursor position at the time of the // double-click is over an existing appointment, the dialog fields are pre-populated with that // appointment's information (Subject, Location, StartDateTime, EndDateTime, etc.) If there // is no appointment at that location, the dialog is initialized for a new appointment. this.ultraMonthViewSingle1.AutoAppointmentDialog = enable; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2