New to Telerik UI for WPFStart a free 30-day trial

Represents the ViewModel for the AppointmentDialog.

Definition

Constructors

C#
[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:occurrenceOccurrenceviewModeAppointmentViewModedialogHostIScheduleViewDialogHostresourceTypesIEnumerable<IResourceType>timeMarkersIEnumerable<ITimeMarker>categoriesIEnumerable<ICategory>appointmentTimeZoneTimeZoneInfoconfirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>

Initializes a new instance of the AppointmentDialogViewModel class.

C#
[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:occurrenceOccurrence

The occurrence.

viewModeAppointmentViewMode

The appointment data-entry modes.

dialogHostIScheduleViewDialogHost

The dialog host.

resourceTypesIEnumerable<IResourceType>

Collection of the resource types.

timeMarkersIEnumerable<ITimeMarker>

Collection of time markers.

categoriesIEnumerable<ICategory>

The categories.

appointmentTimeZoneTimeZoneInfo

The appointment TimeZone.

scheduleViewTimeZoneTimeZoneInfo

The RadScheduleView TimeZone.

confirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>

Confirmation callback.

Properties

Gets or sets the actual end of the occurrence.

C#
public DateTime ActualEnd { get; set; }

Sets or sets the actual start of the occurrence.

C#
public DateTime ActualStart { get; set; }

Gets whether the parent appointment can be edited.

C#
public bool CanEditParentAppointment { get; }

Gets whether to restore to original occurrence or not.

C#
public bool CanRestoreToOriginalOccurrence { get; }

Gets the categories collection.

C#
public IEnumerable<ICategory> Categories { get; }

Gets the text which will be shown when the Categories selection is empty.

C#
public string CategoriesEmptyText { get; }

Gets the content for the ClearSelection button.

C#
public string ClearSelectionButtonContent { get; }

Gets the validation error message.

C#
public string Error { get; }

Implements: IDataErrorInfo.Error

Gets or sets whether IsAllDay is editable or not.

C#
public bool IsAllDayEditable { get; set; }

Gets or sets whether is AllDay event or not.

C#
public bool IsAllDayEvent { get; set; }

Gets or sets whether the occurrence is with high importance or not.

C#
public bool IsHighImportance { get; set; }

Gets or sets whether the occurrence is with low importance or not.

C#
public bool IsLowImportance { get; set; }

Gets whether the occurrence is recurrent or not.

C#
public bool IsNotRecurrent { get; }

Gets whether the AppointmentDialog is in read-only state or not.

C#
public bool IsReadOnly { get; }

Gets or sets the occurrence.

C#
public Occurrence Occurrence { get; set; }

Gets the resource types.

C#
public IEnumerable<ResourceTypeViewModel> ResourceTypes { get; }

Gets the Visibility of the ResourceTypes.

C#
public Visibility ResourceTypesVisibility { get; }

Gets the error message for the property with the given name.

C#
public string this[string columnName] { get; }
Parameters:columnNamestring

The property name.

Property Value:

The error message.

Implements: IDataErrorInfo.this[string]

Gets the TimeMarkers collection.

C#
public IEnumerable<ITimeMarker> TimeMarkers { get; }

Gets the text which will be shown when the TimeMarkers selection is empty.

C#
public string TimeMarkersEmptyText { get; }

Gets or sets the TimeZone.

C#
public TimeZoneInfo TimeZone { get; set; }

Gets the appointment data-entry modes.

C#
public AppointmentViewMode ViewMode { get; }

Methods

Begins editing of the parent appointment.

C#
public void BeginEditParentAppointment()

Restores the exception occurrence if the changes are canceled.

C#
public void BeginRestoreExceptionOccurrence()

Check whether the changes can be confirmed or not.

C#
protected override bool CanConfirm()
Returns:

bool

Returns can confirm the changes in the dialog.

Overrides: SchedulerDialogViewModel.CanConfirm()

Edits the recurrence rule.

C#
public void EditRecurrenceRule()

Fires the EditParentAppointment event.

C#
protected virtual void OnEditParentAppointment(EventArgs eventArgs)
Parameters:eventArgsEventArgs

The event arguments.

Fires the RecurrenceRuleEdited event.

C#
protected virtual void OnRecurrenceRuleEdited(EventArgs eventArgs)
Parameters:eventArgsEventArgs

The event arguments.

Fires the RestoreExceptionOccurrence event.

C#
protected virtual void OnRestoreExceptionOccurrence(EventArgs eventArgs)
Parameters:eventArgsEventArgs

The event arguments.

Validates the ActualStart and ActualEnd properties.

C#
public string ValidateDates()
Returns:

string

The error message if an error is presented. Otherwise, returns null.

Validates the dialog.

C#
public virtual string ValidateDialog()
Returns:

string

The error message if an error is presented. Otherwise, returns null.

Validates the AppointmentDialog using a property.

C#
public virtual string ValidateDialog(string propertyName)
Parameters:propertyNamestring

The property name.

Returns:

string

The error message.

Events

Occurs when an parent appointment is edited.

C#
public event EventHandler EditParentAppointment

Occurs when a recurrence rule is edited.

C#
public event EventHandler RecurrenceRuleEdited

Occurs when an exception occurrence is restored.

C#
public event EventHandler RestoreExceptionOccurrence