Represents the ViewModel for the AppointmentDialog.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
[Browsable(false)]
public class AppointmentDialogViewModel : SchedulerDialogViewModel, INotifyPropertyChanged, IDisposable, IDataErrorInfo
Inheritance: objectViewModelBaseSchedulerDialogViewModelAppointmentDialogViewModel
Implements:
Inherited Members
Constructors
[Browsable(false)]
public AppointmentDialogViewModel(Occurrence occurrence, AppointmentViewMode viewMode, IScheduleViewDialogHost dialogHost, IEnumerable<IResourceType> resourceTypes, IEnumerable<ITimeMarker> timeMarkers, IEnumerable<ICategory> categories, TimeZoneInfo appointmentTimeZone, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)
Initializes a new instance of the AppointmentDialogViewModel class.
[Browsable(false)]
public AppointmentDialogViewModel(Occurrence occurrence, AppointmentViewMode viewMode, IScheduleViewDialogHost dialogHost, IEnumerable<IResourceType> resourceTypes, IEnumerable<ITimeMarker> timeMarkers, IEnumerable<ICategory> categories, TimeZoneInfo appointmentTimeZone, TimeZoneInfo scheduleViewTimeZone, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)
The occurrence.
viewModeAppointmentViewModeThe appointment data-entry modes.
dialogHostIScheduleViewDialogHostThe dialog host.
resourceTypesIEnumerable<IResourceType>Collection of the resource types.
timeMarkersIEnumerable<ITimeMarker>Collection of time markers.
categoriesIEnumerable<ICategory>The categories.
appointmentTimeZoneTimeZoneInfoThe appointment TimeZone.
scheduleViewTimeZoneTimeZoneInfoThe RadScheduleView TimeZone.
confirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>Confirmation callback.
Properties
Gets or sets the actual end of the occurrence.
public DateTime ActualEnd { get; set; }
Sets or sets the actual start of the occurrence.
public DateTime ActualStart { get; set; }
Gets whether the parent appointment can be edited.
public bool CanEditParentAppointment { get; }
Gets whether to restore to original occurrence or not.
public bool CanRestoreToOriginalOccurrence { get; }
Gets the categories collection.
public IEnumerable<ICategory> Categories { get; }
Gets the text which will be shown when the Categories selection is empty.
public string CategoriesEmptyText { get; }
Gets the content for the ClearSelection button.
public string ClearSelectionButtonContent { get; }
Gets or sets whether IsAllDay is editable or not.
public bool IsAllDayEditable { get; set; }
Gets or sets whether is AllDay event or not.
public bool IsAllDayEvent { get; set; }
Gets or sets whether the occurrence is with high importance or not.
public bool IsHighImportance { get; set; }
Gets or sets whether the occurrence is with low importance or not.
public bool IsLowImportance { get; set; }
Gets whether the occurrence is recurrent or not.
public bool IsNotRecurrent { get; }
Gets whether the AppointmentDialog is in read-only state or not.
public bool IsReadOnly { get; }
Gets or sets the occurrence.
public Occurrence Occurrence { get; set; }
Gets the resource types.
public IEnumerable<ResourceTypeViewModel> ResourceTypes { get; }
ResourceTypesVisibility
Visibility
Gets the Visibility of the ResourceTypes.
public Visibility ResourceTypesVisibility { get; }
Gets the error message for the property with the given name.
public string this[string columnName] { get; }
The property name.
Property Value:The error message.
Implements:
Gets the TimeMarkers collection.
public IEnumerable<ITimeMarker> TimeMarkers { get; }
Gets the text which will be shown when the TimeMarkers selection is empty.
public string TimeMarkersEmptyText { get; }
Gets or sets the TimeZone.
public TimeZoneInfo TimeZone { get; set; }
Gets the appointment data-entry modes.
public AppointmentViewMode ViewMode { get; }
Methods
Begins editing of the parent appointment.
public void BeginEditParentAppointment()
Restores the exception occurrence if the changes are canceled.
public void BeginRestoreExceptionOccurrence()
Check whether the changes can be confirmed or not.
protected override bool CanConfirm()
Returns can confirm the changes in the dialog.
Overrides:
Edits the recurrence rule.
public void EditRecurrenceRule()
Fires the EditParentAppointment event.
protected virtual void OnEditParentAppointment(EventArgs eventArgs)
The event arguments.
Fires the RecurrenceRuleEdited event.
protected virtual void OnRecurrenceRuleEdited(EventArgs eventArgs)
The event arguments.
Fires the RestoreExceptionOccurrence event.
protected virtual void OnRestoreExceptionOccurrence(EventArgs eventArgs)
The event arguments.
Validates the ActualStart and ActualEnd properties.
public string ValidateDates()
The error message if an error is presented. Otherwise, returns null.
Validates the dialog.
public virtual string ValidateDialog()
The error message if an error is presented. Otherwise, returns null.
Events
Occurs when an parent appointment is edited.
public event EventHandler EditParentAppointment
Occurs when a recurrence rule is edited.
public event EventHandler RecurrenceRuleEdited
Occurs when an exception occurrence is restored.
public event EventHandler RestoreExceptionOccurrence