Provides the base logic for SchedulerDialog ViewModels.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public abstract class SchedulerDialogViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseSchedulerDialogViewModel
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerDialogViewModel class.
public SchedulerDialogViewModel(IScheduleViewDialogHost dialogHost, Func<SchedulerDialogViewModel, bool?, bool> confirmDialogClose)
The host for the dialog.
confirmDialogCloseFunc<SchedulerDialogViewModel, bool?, bool>Close callback.
Properties
Gets or sets the additional data set to the view model.
public object AdditionalData { get; set; }
The additional data.
The DialogHost for this ViewModel.
protected IScheduleViewDialogHost DialogHost { get; }
Methods
Cancels the operation.
public void Cancel()
Check whether the changes can be confirmed. The default value is true.
Executed confirmation logic if can confirm.
public void Confirm()
Confirms the changes on the ScheduleDialogViewModel.
Registers a class command binding using the CommandBinding class.
protected static void RegisterCommand(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
The command.
executedExecutedRoutedEventHandlerThe handler for the System.Windows.Input.CommandBinding.Executed event on the command.
canExecuteCanExecuteRoutedEventHandlerThe handler for the System.Windows.Input.CommandBinding.CanExecute event on the command.
Events
Occurs when the dialog changes are canceled.
public event EventHandler Cancelled
Occurs when the dialog changes are confirmed.
public event EventHandler Confirmed