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