ClassRecurrenceChoiceDialogViewModel
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class RecurrenceChoiceDialogViewModel : SchedulerDialogViewModel, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseSchedulerDialogViewModelRecurrenceChoiceDialogViewModel
Implements:
Inherited Members
Constructors
RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost, Occurrence, RecurrenceChoiceDialogMode, Func<SchedulerDialogViewModel, bool?, bool>)
Initializes a new instance of the RecurrenceChoiceDialogViewModel class.
Declaration
public RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost dialogHost, Occurrence occurrence, RecurrenceChoiceDialogMode mode, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)
Parameters
dialogHost
The dialog window.
occurrence
The edited occurrence.
mode
The action mode.
confirmDialogClose
Func<SchedulerDialogViewModel, bool?, bool>
The confirmation callback.
RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost, Occurrence, RecurrenceChoiceDialogMode, Func<SchedulerDialogViewModel, bool?, bool>, CultureInfo)
Initializes a new instance of the RecurrenceChoiceDialogViewModel class.
Declaration
public RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost dialogHost, Occurrence occurrence, RecurrenceChoiceDialogMode mode, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose, CultureInfo culture)
Parameters
dialogHost
The dialog window.
occurrence
The edited occurrence.
mode
The action mode.
confirmDialogClose
Func<SchedulerDialogViewModel, bool?, bool>
The confirmation callback.
culture
The culture used to create the RecurrenceDialogViewModel.
Properties
DialogViewModel
The ViewModel which is used as DataContext for the recurrence choice dialog.
Declaration
public RecurrenceDialogViewModel DialogViewModel { get; set; }
Property Value
IsOccurrenceModeSelected
Determines whether current selected recurrence mode is Occurrence or not.
Declaration
public bool? IsOccurrenceModeSelected { get; set; }
Property Value
bool?
IsSeriesModeSelected
Determines whether current selected recurrence mode is Series or not.
Occurrence
The edited occurrence.
RecurrenceChoiceDialogMode
Gets or sets the mode of the recurrence choice dialog.
Declaration
public RecurrenceChoiceDialogMode RecurrenceChoiceDialogMode { get; set; }
Property Value
SelectedRecurrenceMode
The recurrence mode which is currently selected.
Declaration
public RecurrenceMode SelectedRecurrenceMode { get; set; }
Property Value
Methods
GetUpdatedOccurrence()
Apply all changes in the dialog to the Occurrence.
Declaration
public Occurrence GetUpdatedOccurrence()
Returns
The updated recurrence.
OnConfirmed(EventArgs)
Confirms the changes on the dialog ViewModel.
Declaration
protected override void OnConfirmed(EventArgs eventArgs)
Parameters
eventArgs
Overrides