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

Definition

Constructors

Initializes a new instance of the RecurrenceChoiceDialogViewModel class.

C#
public RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost dialogHost, Occurrence occurrence, RecurrenceChoiceDialogMode mode, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose, CultureInfo culture)
Parameters:dialogHostIScheduleViewDialogHost

The dialog window.

occurrenceOccurrence

The edited occurrence.

modeRecurrenceChoiceDialogMode

The action mode.

confirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>

The confirmation callback.

cultureCultureInfo

The culture used to create the RecurrenceDialogViewModel.

Initializes a new instance of the RecurrenceChoiceDialogViewModel class.

C#
public RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost dialogHost, Occurrence occurrence, RecurrenceChoiceDialogMode mode, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)
Parameters:dialogHostIScheduleViewDialogHost

The dialog window.

occurrenceOccurrence

The edited occurrence.

modeRecurrenceChoiceDialogMode

The action mode.

confirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>

The confirmation callback.

Properties

The ViewModel which is used as DataContext for the recurrence choice dialog.

C#
public RecurrenceDialogViewModel DialogViewModel { get; set; }

Determines whether current selected recurrence mode is Occurrence or not.

C#
public bool? IsOccurrenceModeSelected { get; set; }

Determines whether current selected recurrence mode is Series or not.

C#
public bool? IsSeriesModeSelected { get; set; }

The edited occurrence.

C#
public Occurrence Occurrence { get; set; }

Gets or sets the mode of the recurrence choice dialog.

C#
public RecurrenceChoiceDialogMode RecurrenceChoiceDialogMode { get; set; }

The recurrence mode which is currently selected.

C#
public RecurrenceMode SelectedRecurrenceMode { get; set; }

Methods

Apply all changes in the dialog to the Occurrence.

C#
public Occurrence GetUpdatedOccurrence()
Returns:

Occurrence

The updated recurrence.

Confirms the changes on the dialog ViewModel.

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

Overrides: SchedulerDialogViewModel.OnConfirmed(EventArgs)