Class
RecurrenceChoiceDialogViewModel

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

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

Inheritance: objectViewModelBaseSchedulerDialogViewModelRecurrenceChoiceDialogViewModel

Implements: INotifyPropertyChanged

Inherited Members SchedulerDialogViewModel.Confirm()SchedulerDialogViewModel.Cancel()SchedulerDialogViewModel.DoWithViewModel<T>(object, Action<T>)SchedulerDialogViewModel.RegisterCommand(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)SchedulerDialogViewModel.OnConfirmed(RadRoutedEventArgs)SchedulerDialogViewModel.OnCancelled(EventArgs)SchedulerDialogViewModel.CanConfirm()SchedulerDialogViewModel.AdditionalDataSchedulerDialogViewModel.DialogHostSchedulerDialogViewModel.ConfirmedSchedulerDialogViewModel.CancelledViewModelBase.VerifyPropertyName(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.PropertyChangedOverride(string)ViewModelBase.PropertyChanged

Constructors

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

Initializes a new instance of the RecurrenceChoiceDialogViewModel class.

Declaration

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

Parameters

dialogHost

ISchedulerDialogHost

The dialog window.

occurrence

Occurrence

The edited occurrence.

mode

RecurrenceChoiceDialogMode

The action mode.

confirmDialogClose

Func<SchedulerDialogViewModel, bool?, bool>

The confirmation callback.

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

Initializes a new instance of the RecurrenceChoiceDialogViewModel class.

Declaration

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

Parameters

dialogHost

ISchedulerDialogHost

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.