Class
AppointmentDialogViewModel

Represents the ViewModel for the AppointmentDialog.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
[Browsable(false)]
public class AppointmentDialogViewModel : SchedulerDialogViewModel, INotifyPropertyChanged, IDisposable, IDataErrorInfo

Inheritance: objectViewModelBaseSchedulerDialogViewModelAppointmentDialogViewModel

Implements: IDataErrorInfoIDisposableINotifyPropertyChanged

Inherited Members SchedulerDialogViewModel.Confirm()SchedulerDialogViewModel.Cancel()SchedulerDialogViewModel.DoWithViewModel<T>(object, Action<T>)SchedulerDialogViewModel.RegisterCommand(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)SchedulerDialogViewModel.OnConfirmed(EventArgs)SchedulerDialogViewModel.OnCancelled(EventArgs)SchedulerDialogViewModel.AdditionalDataSchedulerDialogViewModel.DialogHostSchedulerDialogViewModel.ConfirmedSchedulerDialogViewModel.CancelledViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

AppointmentDialogViewModel(Occurrence, AppointmentViewMode, IScheduleViewDialogHost, IEnumerable<IResourceType>, IEnumerable<ITimeMarker>, IEnumerable<ICategory>, TimeZoneInfo, Func<SchedulerDialogViewModel, bool?, bool>)

Declaration

cs-api-definition
[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

Occurrence

viewMode

AppointmentViewMode

dialogHost

IScheduleViewDialogHost

resourceTypes

IEnumerable<IResourceType>

timeMarkers

IEnumerable<ITimeMarker>

categories

IEnumerable<ICategory>

appointmentTimeZone

TimeZoneInfo

confirmDialogClose

Func<SchedulerDialogViewModel, bool?, bool>

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

cs-api-definition
[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

Occurrence

The occurrence.

viewMode

AppointmentViewMode

The appointment data-entry modes.

dialogHost

IScheduleViewDialogHost

The dialog host.

resourceTypes

IEnumerable<IResourceType>

Collection of the resource types.

timeMarkers

IEnumerable<ITimeMarker>

Collection of time markers.

categories

IEnumerable<ICategory>

The categories.

appointmentTimeZone

TimeZoneInfo

The appointment TimeZone.

scheduleViewTimeZone

TimeZoneInfo

The RadScheduleView TimeZone.

confirmDialogClose

Func<SchedulerDialogViewModel, bool?, bool>

Confirmation callback.

Properties

ActualEnd

Gets or sets the actual end of the occurrence.

Declaration

cs-api-definition
public DateTime ActualEnd { get; set; }

Property Value

DateTime

ActualStart

Sets or sets the actual start of the occurrence.

Declaration

cs-api-definition
public DateTime ActualStart { get; set; }

Property Value

DateTime

CanEditParentAppointment

Gets whether the parent appointment can be edited.

Declaration

cs-api-definition
public bool CanEditParentAppointment { get; }

Property Value

bool

CanRestoreToOriginalOccurrence

Gets whether to restore to original occurrence or not.

Declaration

cs-api-definition
public bool CanRestoreToOriginalOccurrence { get; }

Property Value

bool

Categories

Gets the categories collection.

Declaration

cs-api-definition
public IEnumerable<ICategory> Categories { get; }

Property Value

IEnumerable<ICategory>

CategoriesEmptyText

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

Declaration

cs-api-definition
public string CategoriesEmptyText { get; }

Property Value

string

ClearSelectionButtonContent

Gets the content for the ClearSelection button.

Declaration

cs-api-definition
public string ClearSelectionButtonContent { get; }

Property Value

string

Error

Gets the validation error message.

Declaration

cs-api-definition
public string Error { get; }

Property Value

string

Implements IDataErrorInfo.Error

IsAllDayEditable

Gets or sets whether IsAllDay is editable or not.

Declaration

cs-api-definition
public bool IsAllDayEditable { get; set; }

Property Value

bool

IsAllDayEvent

Gets or sets whether is AllDay event or not.

Declaration

cs-api-definition
public bool IsAllDayEvent { get; set; }

Property Value

bool

IsHighImportance

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

Declaration

cs-api-definition
public bool IsHighImportance { get; set; }

Property Value

bool

IsLowImportance

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

Declaration

cs-api-definition
public bool IsLowImportance { get; set; }

Property Value

bool

IsNotRecurrent

Gets whether the occurrence is recurrent or not.

Declaration

cs-api-definition
public bool IsNotRecurrent { get; }

Property Value

bool

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Occurrence

Gets or sets the occurrence.

Declaration

cs-api-definition
public Occurrence Occurrence { get; set; }

Property Value

Occurrence

ResourceTypes

Gets the resource types.

Declaration

cs-api-definition
public IEnumerable<ResourceTypeViewModel> ResourceTypes { get; }

Property Value

IEnumerable<ResourceTypeViewModel>

ResourceTypesVisibility

Gets the Visibility of the ResourceTypes.

Declaration

cs-api-definition
public Visibility ResourceTypesVisibility { get; }

Property Value

Visibility

TimeMarkers

Gets the TimeMarkers collection.

Declaration

cs-api-definition
public IEnumerable<ITimeMarker> TimeMarkers { get; }

Property Value

IEnumerable<ITimeMarker>

TimeMarkersEmptyText

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

Declaration

cs-api-definition
public string TimeMarkersEmptyText { get; }

Property Value

string

TimeZone

Gets or sets the TimeZone.

Declaration

cs-api-definition
public TimeZoneInfo TimeZone { get; set; }

Property Value

TimeZoneInfo

ViewMode

Gets the appointment data-entry modes.

Declaration

cs-api-definition
public AppointmentViewMode ViewMode { get; }

Property Value

AppointmentViewMode

this[string]

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

Declaration

cs-api-definition
public string this[string columnName] { get; }

Parameters

columnName

string

The property name.

Property Value

string

The error message.

Implements IDataErrorInfo.this[string]

Methods

BeginEditParentAppointment()

Begins editing of the parent appointment.

Declaration

cs-api-definition
public void BeginEditParentAppointment()

BeginRestoreExceptionOccurrence()

Restores the exception occurrence if the changes are canceled.

Declaration

cs-api-definition
public void BeginRestoreExceptionOccurrence()

CanConfirm()

Check whether the changes can be confirmed or not.

Declaration

cs-api-definition
protected override bool CanConfirm()

Returns

bool

Returns can confirm the changes in the dialog.

Overrides SchedulerDialogViewModel.CanConfirm()

EditRecurrenceRule()

Edits the recurrence rule.

Declaration

cs-api-definition
public void EditRecurrenceRule()

OnEditParentAppointment(EventArgs)

Fires the EditParentAppointment event.

Declaration

cs-api-definition
protected virtual void OnEditParentAppointment(EventArgs eventArgs)

Parameters

eventArgs

EventArgs

The event arguments.

OnRecurrenceRuleEdited(EventArgs)

Fires the RecurrenceRuleEdited event.

Declaration

cs-api-definition
protected virtual void OnRecurrenceRuleEdited(EventArgs eventArgs)

Parameters

eventArgs

EventArgs

The event arguments.

OnRestoreExceptionOccurrence(EventArgs)

Fires the RestoreExceptionOccurrence event.

Declaration

cs-api-definition
protected virtual void OnRestoreExceptionOccurrence(EventArgs eventArgs)

Parameters

eventArgs

EventArgs

The event arguments.

ValidateDates()

Validates the ActualStart and ActualEnd properties.

Declaration

cs-api-definition
public string ValidateDates()

Returns

string

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

ValidateDialog()

Validates the dialog.

Declaration

cs-api-definition
public virtual string ValidateDialog()

Returns

string

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

ValidateDialog(string)

Validates the AppointmentDialog using a property.

Declaration

cs-api-definition
public virtual string ValidateDialog(string propertyName)

Parameters

propertyName

string

The property name.

Returns

string

The error message.

Events

EditParentAppointment

Occurs when an parent appointment is edited.

Declaration

cs-api-definition
public event EventHandler EditParentAppointment

Event Value

EventHandler

RecurrenceRuleEdited

Occurs when a recurrence rule is edited.

Declaration

cs-api-definition
public event EventHandler RecurrenceRuleEdited

Event Value

EventHandler

RestoreExceptionOccurrence

Occurs when an exception occurrence is restored.

Declaration

cs-api-definition
public event EventHandler RestoreExceptionOccurrence

Event Value

EventHandler