skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class AppointmentDialogViewModel

Represents the ViewModel for the AppointmentDialog.

Inheritance
System.Object
ViewModelBase
SchedulerDialogViewModel
AppointmentDialogViewModel
Inherited Members
SchedulerDialogViewModel.Confirm()
SchedulerDialogViewModel.Cancel()
SchedulerDialogViewModel.DoWithViewModel<T>(Object, Action<T>)
SchedulerDialogViewModel.RegisterCommand(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)
SchedulerDialogViewModel.OnConfirmed(EventArgs)
SchedulerDialogViewModel.OnCancelled(EventArgs)
SchedulerDialogViewModel.AdditionalData
SchedulerDialogViewModel.DialogHost
SchedulerDialogViewModel.Confirmed
SchedulerDialogViewModel.Cancelled
ViewModelBase.VerifyPropertyName(String)
ViewModelBase.InvokeOnUIThread(Action)
ViewModelBase.Dispose()
ViewModelBase.RaisePropertyChanged(String)
ViewModelBase.OnPropertyChanged(String)
ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)
ViewModelBase.Dispose(Boolean)
ViewModelBase.PropertyChanged
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, Nullable<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, Nullable<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
SchedulerDialogViewModel.CanConfirm()

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.