Class
RecurrenceDialogViewModel

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class RecurrenceDialogViewModel : SchedulerDialogViewModel, INotifyPropertyChanged, IDisposable, IDataErrorInfo

Inheritance: objectViewModelBaseSchedulerDialogViewModelRecurrenceDialogViewModel

Implements: IDataErrorInfoIDisposableINotifyPropertyChanged

Inherited Members SchedulerDialogViewModel.Confirm()SchedulerDialogViewModel.Cancel()SchedulerDialogViewModel.DoWithViewModel<T>(object, Action<T>)SchedulerDialogViewModel.RegisterCommand(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)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

RecurrenceDialogViewModel(IAppointment, AppointmentViewMode, IScheduleViewDialogHost, CultureInfo, Func<SchedulerDialogViewModel, bool?, bool>)

Initializes a new instance of the RecurrenceDialogViewModel class.

Declaration

cs-api-definition
public RecurrenceDialogViewModel(IAppointment appointment, AppointmentViewMode viewMode, IScheduleViewDialogHost dialogHost, CultureInfo culture, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)

Parameters

appointment

IAppointment

viewMode

AppointmentViewMode

dialogHost

IScheduleViewDialogHost

culture

CultureInfo

confirmDialogClose

Func<SchedulerDialogViewModel, bool?, bool>

Fields

DefaultMaxOccurrences

Default MaxOccurrences value.

Declaration

cs-api-definition
public static readonly int DefaultMaxOccurrences

Field Value

int

Properties

Appointment

Declaration

cs-api-definition
public IAppointment Appointment { get; }

Property Value

IAppointment

CanDeleteRecurrence

Declaration

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

Property Value

bool

DaysOfMonth

The dates of the month on which the event recurs (for example, the first day of the month, or the third to last day of the month).

Declaration

cs-api-definition
public int[] DaysOfMonth { get; set; }

Property Value

int[]

Duration

The duration of the recurring event.

Declaration

cs-api-definition
public TimeSpan Duration { get; set; }

Property Value

TimeSpan

End

The last date and time for the event to occur. Either this or Count may be used, but not both.

Declaration

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

Property Value

DateTime

Error

Returns the error message.

Declaration

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

Property Value

string

Implements IDataErrorInfo.Error

Interval

A number indicating how often this rule repeats, when combined with the frequency.

Declaration

cs-api-definition
public int Interval { get; set; }

Property Value

int

IsReadOnly

Declaration

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

Property Value

bool

IsRemoveRecurrenceButtonEnabled

Declaration

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

Property Value

bool

MaxOccurrences

Optional limit for the number of occurrences.

Declaration

cs-api-definition
public int MaxOccurrences { get; set; }

Property Value

int

MonthOfYear

Gets or sets the month of year.

Declaration

cs-api-definition
public int MonthOfYear { get; set; }

Property Value

int

The month of year.

NamesOfMonths

Gets the names of months.

Declaration

cs-api-definition
public IDictionary<int, string> NamesOfMonths { get; }

Property Value

IDictionary<int, string>

The names of months.

NthRecurrenceDay

Gets or sets the nth recurrence day.

Declaration

cs-api-definition
public RecurrenceDays NthRecurrenceDay { get; set; }

Property Value

RecurrenceDays

The nth recurrence day.

NthRecurrenceDays

Gets the NTH recurrence days.

Declaration

cs-api-definition
public IList<NameValueItem<RecurrenceDays>> NthRecurrenceDays { get; }

Property Value

IList<NameValueItem<RecurrenceDays>>

The NTH recurrence days.

RecurrenceRangeType

Gets or sets a value indicating the type of recurrence range.

Declaration

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

Property Value

RecurrenceRangeType

The type of the recurrence range.

RecurrenceType

Gets or sets the type of the recurrence.

Declaration

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

Property Value

RecurrenceType

The type of the recurrence.

RecursUntil

Optional end date for the recurring appointment.

Declaration

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

Property Value

DateTime

Start

The start of the recurring event.

Declaration

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

Property Value

DateTime

ViewMode

Declaration

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

Property Value

AppointmentViewMode

WeekDays

Declaration

cs-api-definition
public IList<NameValueItem<RecurrenceDays>> WeekDays { get; }

Property Value

IList<NameValueItem<RecurrenceDays>>

WeekOfMonth

Declaration

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

Property Value

WeekOfMonth

WeekOfMonths

Declaration

cs-api-definition
public IList<NameValueItem<WeekOfMonth>> WeekOfMonths { get; }

Property Value

IList<NameValueItem<WeekOfMonth>>

this[string]

Declaration

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

Parameters

columnName

string

Property Value

string

Implements IDataErrorInfo.this[string]

Methods

CanConfirm()

Check whether the changes can be confirmed. The default value is true.

Declaration

cs-api-definition
protected override bool CanConfirm()

Returns

bool

Returns whether the changes can be confirmed.

Overrides SchedulerDialogViewModel.CanConfirm()

DeleteRecurrence()

Declaration

cs-api-definition
public bool DeleteRecurrence()

Returns

bool

OnConfirmed(EventArgs)

Confirms the changes on the ScheduleDialogViewModel.

Declaration

cs-api-definition
protected override void OnConfirmed(EventArgs eventArgs)

Parameters

eventArgs

EventArgs

Overrides SchedulerDialogViewModel.OnConfirmed(EventArgs)

SaveRecurrence()

Declaration

cs-api-definition
public bool SaveRecurrence()

Returns

bool