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

Definition

Constructors

Initializes a new instance of the RecurrenceDialogViewModel class.

C#
public RecurrenceDialogViewModel(IAppointment appointment, AppointmentViewMode viewMode, IScheduleViewDialogHost dialogHost, CultureInfo culture, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)
Parameters:appointmentIAppointmentviewModeAppointmentViewModedialogHostIScheduleViewDialogHostcultureCultureInfoconfirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>

Fields

Default MaxOccurrences value.

C#
public static readonly int DefaultMaxOccurrences

Properties

C#
public IAppointment Appointment { get; }
C#
public bool CanDeleteRecurrence { get; }

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).

C#
public int[] DaysOfMonth { get; set; }

The duration of the recurring event.

C#
public TimeSpan Duration { get; set; }

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

C#
public DateTime End { get; set; }

Returns the error message.

C#
public string Error { get; }

Implements: IDataErrorInfo.Error

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

C#
public int Interval { get; set; }
C#
public bool IsReadOnly { get; }
C#
public bool IsRemoveRecurrenceButtonEnabled { get; }

Optional limit for the number of occurrences.

C#
public int MaxOccurrences { get; set; }

Gets or sets the month of year.

C#
public int MonthOfYear { get; set; }
Property Value:

The month of year.

Gets the names of months.

C#
public IDictionary<int, string> NamesOfMonths { get; }
Property Value:

The names of months.

Gets or sets the nth recurrence day.

C#
public RecurrenceDays NthRecurrenceDay { get; set; }
Property Value:

The nth recurrence day.

Gets the NTH recurrence days.

C#
public IList<NameValueItem<RecurrenceDays>> NthRecurrenceDays { get; }
Property Value:

The NTH recurrence days.

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

C#
public RecurrenceRangeType RecurrenceRangeType { get; set; }
Property Value:

The type of the recurrence range.

Gets or sets the type of the recurrence.

C#
public RecurrenceType RecurrenceType { get; set; }
Property Value:

The type of the recurrence.

Optional end date for the recurring appointment.

C#
public DateTime RecursUntil { get; set; }

The start of the recurring event.

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

Implements: IDataErrorInfo.this[string]

C#
public AppointmentViewMode ViewMode { get; }
C#
public IList<NameValueItem<RecurrenceDays>> WeekDays { get; }
C#
public WeekOfMonth WeekOfMonth { get; set; }
C#
public IList<NameValueItem<WeekOfMonth>> WeekOfMonths { get; }

Methods

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

C#
protected override bool CanConfirm()
Returns:

bool

Returns whether the changes can be confirmed.

Overrides: SchedulerDialogViewModel.CanConfirm()

C#
public bool DeleteRecurrence()
Returns:

bool

Confirms the changes on the ScheduleDialogViewModel.

C#
protected override void OnConfirmed(EventArgs eventArgs)
Parameters:eventArgsEventArgs

Overrides: SchedulerDialogViewModel.OnConfirmed(EventArgs)

C#
public bool SaveRecurrence()
Returns:

bool