C1Scheduler Commands
In order to offer the ability to use some types of C1Scheduler functionality declaratively in XAML, C1Scheduler provides a number of commands that can be issued with the help of instances of ButtonBase or InputBinding derived classes.
The following table describes the Navigation commands:
Navigation Commands (an example of a sender of these commands is the C1SchedulerScrollBar control) | |
Decrements the VisualStartTime property value on the amount specified in the SmallStartTimeChange property. | |
Decrements the VisualStartTime property value on the amount specified in the LargeStartTimeChange property. | |
Increments the VisualStartTime property value on the amount specified in the SmallStartTimeChange property. | |
Increments the VisualStartTime property value on the amount specified in the LargeStartTimeChange property. | |
Sets the VisualStartTime property to a value between the Start and End property values based on the specified coefficient. Command parameter: a floating point number in a range between 0 and 1 or its string representation. | |
Makes a nearest appointment before the SelectedDateTime visible in the control UI. | |
Makes a nearest appointment after the SelectedDateTime visible in the control UI. |
The following table describes the Dialog commands:
Dialog Commands | |
Opens the Edit Appointment dialog box for an existing appointment. Command parameter is one of the next values: • the Appointment to edit; • IList of Appointment objects to edit; • IList of Reminder objects whose parent appointments should be edited. If a parameter value is not specified, then the control will try to get an appointment from the sender’s DataContext. | |
Adds a new appointment and opens the Edit Appointment dialog box for it. The time interval for which an appointment will be created is determined by the sender’s DataContext. | |
Opens the Edit Recurrence dialog box for an appointment’s recurrence. Command parameter: the Appointment whose RecurrencePattern will be edited. If a parameter value is not specified, then the control will try to get an appointment from the sender’s DataContext. | |
Opens the Select Resources/Categories/Contacts, and so on dialog box. Command parameter should be an array from 4 or 5 values: 1. The master list to choose from. For example Resources. 2. The resulting list where to put selected items. For example, the Appointment.Resources list. 3. The System.Type value specifying the type of items in both lists. 4. The reference to the owning window if any. 5. The String value to show as the dialog window title. This parameter is optional. |
The following table describes the Import/Export commands:
Import/Export Commands |
|
Imports C1Scheduler data from the file. This command opens the "Open File" dialog box and then tries to import data from the selected file. | |
Exports C1Scheduler data to the file. This command opens "Save File" dialog and then exports data to file. Command parameter is one of the next values: • the Appointment for saving; • Ilist<Appointment> for saving; • null – to export all Scheduler data. |
The following table describes the Reminder commands:
Reminder Commands | |
Dismisses reminders. Command parameter is one of the next values: • IList of Reminder objects to dismiss; • the Reminder object to dismiss. If a command parameter is not specified, all active reminders will be dismissed. | |
SnoozeCommand |
Snoozes reminders. Command parameter may contain an array of 2 values: 1. The TimeSpan value specifying time interval used for snoozing. 2. One of the next values: • IList of Reminder objects to snooze; • the Reminder object to snooze. This item is optional. If it is not specified, all active reminders will be snoozed. |
The following table describes some additional commands:
Other Commands | |
DeleteSelectedAppointmentCommand |
Deletes an appointment which is currently selected in the UI and referenced in the SelectedAppointment property. |
Changes the Style property with the specified Style or a style referenced by the specified ResourceDictionary key. Command parameter: Style or a ResourceDictionary key representing a Style. |
|