Class AppointmentDialogViewModel
Represents the ViewModel for the AppointmentDialog.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class AppointmentDialogViewModel : SchedulerDialogViewModel, INotifyPropertyChanged, IDisposable, IDataErrorInfo
Constructors
AppointmentDialogViewModel(Occurrence, AppointmentViewMode, IScheduleViewDialogHost, IEnumerable<IResourceType>, IEnumerable<ITimeMarker>, IEnumerable<ICategory>, TimeZoneInfo, Func<SchedulerDialogViewModel, Nullable<Boolean>, Boolean>)
Declaration
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
occurrence
|
AppointmentViewMode
viewMode
|
IScheduleViewDialogHost
dialogHost
|
System.Collections.Generic.IEnumerable<IResourceType>
resourceTypes
|
System.Collections.Generic.IEnumerable<ITimeMarker>
timeMarkers
|
System.Collections.Generic.IEnumerable<ICategory>
categories
|
System.TimeZoneInfo
appointmentTimeZone
|
System.Func<SchedulerDialogViewModel, System.Nullable<System.Boolean>, System.Boolean>
confirmDialogClose
|
AppointmentDialogViewModel(Occurrence, AppointmentViewMode, IScheduleViewDialogHost, IEnumerable<IResourceType>, IEnumerable<ITimeMarker>, IEnumerable<ICategory>, TimeZoneInfo, TimeZoneInfo, Func<SchedulerDialogViewModel, Nullable<Boolean>, Boolean>)
Initializes a new instance of the AppointmentDialogViewModel class.
Declaration
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
occurrence
The occurrence. |
AppointmentViewMode
viewMode
The appointment data-entry modes. |
IScheduleViewDialogHost
dialogHost
The dialog host. |
System.Collections.Generic.IEnumerable<IResourceType>
resourceTypes
Collection of the resource types. |
System.Collections.Generic.IEnumerable<ITimeMarker>
timeMarkers
Collection of time markers. |
System.Collections.Generic.IEnumerable<ICategory>
categories
The categories. |
System.TimeZoneInfo
appointmentTimeZone
The appointment TimeZone. |
System.TimeZoneInfo
scheduleViewTimeZone
The RadScheduleView TimeZone. |
System.Func<SchedulerDialogViewModel, System.Nullable<System.Boolean>, System.Boolean>
confirmDialogClose
Confirmation callback. |
Properties
ActualEnd
Gets or sets the actual end of the occurrence.
Declaration
public DateTime ActualEnd { get; set; }
Property Value
System.DateTime
|
ActualStart
Sets or sets the actual start of the occurrence.
Declaration
public DateTime ActualStart { get; set; }
Property Value
System.DateTime
|
CanEditParentAppointment
Gets whether the parent appointment can be edited.
Declaration
public bool CanEditParentAppointment { get; }
Property Value
System.Boolean
|
CanRestoreToOriginalOccurrence
Gets whether to restore to original occurrence or not.
Declaration
public bool CanRestoreToOriginalOccurrence { get; }
Property Value
System.Boolean
|
Categories
Gets the categories collection.
Declaration
public IEnumerable<ICategory> Categories { get; }
Property Value
System.Collections.Generic.IEnumerable<ICategory>
|
CategoriesEmptyText
Gets the text which will be shown when the Categories selection is empty.
Declaration
public string CategoriesEmptyText { get; }
Property Value
System.String
|
ClearSelectionButtonContent
Gets the content for the ClearSelection button.
Declaration
public string ClearSelectionButtonContent { get; }
Property Value
System.String
|
Error
Gets the validation error message.
Declaration
public string Error { get; }
Property Value
System.String
|
IsAllDayEditable
Gets or sets whether IsAllDay is editable or not.
Declaration
public bool IsAllDayEditable { get; set; }
Property Value
System.Boolean
|
IsAllDayEvent
Gets or sets whether is AllDay event or not.
Declaration
public bool IsAllDayEvent { get; set; }
Property Value
System.Boolean
|
IsHighImportance
Gets or sets whether the occurrence is with high importance or not.
Declaration
public bool IsHighImportance { get; set; }
Property Value
System.Boolean
|
IsLowImportance
Gets or sets whether the occurrence is with low importance or not.
Declaration
public bool IsLowImportance { get; set; }
Property Value
System.Boolean
|
IsNotRecurrent
Gets whether the occurrence is recurrent or not.
Declaration
public bool IsNotRecurrent { get; }
Property Value
System.Boolean
|
IsReadOnly
Gets whether the AppointmentDialog is in read-only state or not.
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Item[String]
Gets the error message for the property with the given name.
Declaration
public string this[string columnName] { get; }
Parameters
System.String
columnName
The property name. |
Property Value
System.String
The error message. |
Occurrence
Gets or sets the occurrence.
Declaration
public Occurrence Occurrence { get; set; }
Property Value
Occurrence
|
ResourceTypes
Gets the resource types.
Declaration
public IEnumerable<ResourceTypeViewModel> ResourceTypes { get; }
Property Value
System.Collections.Generic.IEnumerable<ResourceTypeViewModel>
|
ResourceTypesVisibility
Gets the Visibility of the ResourceTypes.
Declaration
public Visibility ResourceTypesVisibility { get; }
Property Value
System.Windows.Visibility
|
TimeMarkers
Gets the TimeMarkers collection.
Declaration
public IEnumerable<ITimeMarker> TimeMarkers { get; }
Property Value
System.Collections.Generic.IEnumerable<ITimeMarker>
|
TimeMarkersEmptyText
Gets the text which will be shown when the TimeMarkers selection is empty.
Declaration
public string TimeMarkersEmptyText { get; }
Property Value
System.String
|
TimeZone
Gets or sets the TimeZone.
Declaration
public TimeZoneInfo TimeZone { get; set; }
Property Value
System.TimeZoneInfo
|
ViewMode
Gets the appointment data-entry modes.
Declaration
public AppointmentViewMode ViewMode { get; }
Property Value
AppointmentViewMode
|
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
System.Boolean
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
System.EventArgs
eventArgs
The event arguments. |
OnRecurrenceRuleEdited(EventArgs)
Fires the RecurrenceRuleEdited event.
Declaration
protected virtual void OnRecurrenceRuleEdited(EventArgs eventArgs)
Parameters
System.EventArgs
eventArgs
The event arguments. |
OnRestoreExceptionOccurrence(EventArgs)
Fires the RestoreExceptionOccurrence event.
Declaration
protected virtual void OnRestoreExceptionOccurrence(EventArgs eventArgs)
Parameters
System.EventArgs
eventArgs
The event arguments. |
ValidateDates()
Validates the ActualStart and ActualEnd properties.
Declaration
public string ValidateDates()
Returns
System.String
The error message if an error is presented. Otherwise, returns null. |
ValidateDialog()
Validates the dialog.
Declaration
public virtual string ValidateDialog()
Returns
System.String
The error message if an error is presented. Otherwise, returns null. |
ValidateDialog(String)
Validates the AppointmentDialog using a property.
Declaration
public virtual string ValidateDialog(string propertyName)
Parameters
System.String
propertyName
The property name. |
Returns
System.String
The error message. |
Events
EditParentAppointment
Occurs when an parent appointment is edited.
Declaration
public event EventHandler EditParentAppointment
Event Type
System.EventHandler
|
RecurrenceRuleEdited
Occurs when a recurrence rule is edited.
Declaration
public event EventHandler RecurrenceRuleEdited
Event Type
System.EventHandler
|
RestoreExceptionOccurrence
Occurs when an exception occurrence is restored.
Declaration
public event EventHandler RestoreExceptionOccurrence
Event Type
System.EventHandler
|