Scheduler Components and Controls > 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 the ButtonBase 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 C1Scheduler.VisualStartTime property value on the amount specified in the C1Scheduler.SmallStartTimeChange property. |
|
Decrements the C1Scheduler.VisualStartTime property value on the amount specified in the C1Scheduler.LargeStartTimeChange property. |
|
Increments the C1Scheduler.VisualStartTime property value on the amount specified in the C1Scheduler.SmallStartTimeChange property. |
|
Increments the C1Scheduler.VisualStartTime property value on the amount specified in the C1Scheduler.LargeStartTimeChange property. |
|
Sets the C1Scheduler.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. |
|
Set focus to the nearest appointment before the C1Scheduler.SelectedDateTime is visible in the control UI. |
|
Sets focus to the nearest appointment after the C1Scheduler.SelectedDateTime is 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:
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:
|
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 following table describes the Reminder commands:
Reminder Commands |
|
Dismisses reminders. Command parameter is one of the next values:
If a command parameter is not specified, all active reminders will be dismissed. |
|
Snoozes reminders. Command parameter may contain an array of 2 values:
This item is optional. If it is not specified, all active reminders will be snoozed. |
The following table describes some additional commands:
Other Commands |
|
Deletes an appointment which is currently selected in the UI and referenced in the C1Scheduler.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. |
|
Defines the command that navigates C1Scheduler UI to the previous SchedulerGroupItem object. Optional command parameter is one of the next values:
|
|
Defines the command that navigates C1Scheduler UI to the next SchedulerGroupItem object. Optional command parameter is one of the next values:
|
|
Defines the command that hides the specified SchedulerGroupItem object. Command parameter must specify the SchedulerGroupItem object to hide. |