Class
RecurrenceChoiceDialogViewModel

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class RecurrenceChoiceDialogViewModel : SchedulerDialogViewModel, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseSchedulerDialogViewModelRecurrenceChoiceDialogViewModel

Implements: IDisposableINotifyPropertyChanged

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

RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost, Occurrence, RecurrenceChoiceDialogMode, Func<SchedulerDialogViewModel, bool?, bool>)

Initializes a new instance of the RecurrenceChoiceDialogViewModel class.

Declaration

cs-api-definition
public RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost dialogHost, Occurrence occurrence, RecurrenceChoiceDialogMode mode, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)

Parameters

dialogHost

IScheduleViewDialogHost

The dialog window.

occurrence

Occurrence

The edited occurrence.

mode

RecurrenceChoiceDialogMode

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

cs-api-definition
public RecurrenceChoiceDialogViewModel(IScheduleViewDialogHost dialogHost, Occurrence occurrence, RecurrenceChoiceDialogMode mode, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose, CultureInfo culture)

Parameters

dialogHost

IScheduleViewDialogHost

The dialog window.

occurrence

Occurrence

The edited occurrence.

mode

RecurrenceChoiceDialogMode

The action mode.

confirmDialogClose

Func<SchedulerDialogViewModel, bool?, bool>

The confirmation callback.

culture

CultureInfo

The culture used to create the RecurrenceDialogViewModel.

Properties

DialogViewModel

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

Declaration

cs-api-definition
public RecurrenceDialogViewModel DialogViewModel { get; set; }

Property Value

RecurrenceDialogViewModel

IsOccurrenceModeSelected

Determines whether current selected recurrence mode is Occurrence or not.

Declaration

cs-api-definition
public bool? IsOccurrenceModeSelected { get; set; }

Property Value

bool?

IsSeriesModeSelected

Determines whether current selected recurrence mode is Series or not.

Declaration

cs-api-definition
public bool? IsSeriesModeSelected { get; set; }

Property Value

bool?

Occurrence

The edited occurrence.

Declaration

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

Property Value

Occurrence

RecurrenceChoiceDialogMode

Gets or sets the mode of the recurrence choice dialog.

Declaration

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

Property Value

RecurrenceChoiceDialogMode

SelectedRecurrenceMode

The recurrence mode which is currently selected.

Declaration

cs-api-definition
public RecurrenceMode SelectedRecurrenceMode { get; set; }

Property Value

RecurrenceMode

Methods

GetUpdatedOccurrence()

Apply all changes in the dialog to the Occurrence.

Declaration

cs-api-definition
public Occurrence GetUpdatedOccurrence()

Returns

Occurrence

The updated recurrence.

OnConfirmed(EventArgs)

Confirms the changes on the dialog ViewModel.

Declaration

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

Parameters

eventArgs

EventArgs

Overrides SchedulerDialogViewModel.OnConfirmed(EventArgs)