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

A base class for the various pivot field list editing dialogs view models.

Definition

Properties

Gets the Cancel ICommand for this dialog.

C#
public ICommand Cancel { get; }

Implements: IDialogViewModel.Cancel

Gets a value that indicates if the editing is possible.

C#
public bool IsAvailable { get; }

Gets a value that indicates if the dialog is waiting on results.

C#
public bool IsWorking { get; protected set; }

Gets the Ok ICommand for this dialog.

C#
public ICommand Ok { get; }

Implements: IDialogViewModel.Ok

Gets the Refresh ICommand for this dialog.

C#
public ICommand Refresh { get; }

Gets a value that indicates if the editing requires recent IPivotResults data.

C#
public bool RequiresRefresh { get; protected set; }

Methods

Attach to the new services.

C#
protected virtual void AttachToServices()

Checks if the Ok ICommand can be executed.

C#
protected virtual bool CanExecuteOk(object parameter)
Parameters:parameterobject

The parameters.

Returns:

bool

True if ICommand can be executed. Otherwise - false.

Detach the previous services.

C#
protected virtual void DetachFromServices()

Releases unmanaged and - optionally - managed resources.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources. false to release only unmanaged resources.

Overrides: ViewModelBase.Dispose(bool)

Handles the Ok execution.

C#
protected virtual void ExecuteOk(object parameter)
Parameters:parameterobject

Handles the Refresh execution.

C#
protected virtual void ExecuteRefresh(object parameter)
Parameters:parameterobject

Retrieve the services from the serviceProvider. You could use the if you do not want the IsAvailable to track your requests.

C#
protected virtual void RetrieveServices(IServiceProvider serviceProvider)
Parameters:serviceProviderIServiceProvider

The IServiceProvider to retrieve services from. This is a slim wrapper around the that would keep track of if all requested services were available. If a requested service was unavailable the DialogViewModel's IsAvailable would be set to false.

Events

Invoked when the user canceled any changes done through this dialog.

C#
public event EventHandler Canceled

Implements: IDialogViewModel.Canceled

Invoked when the user completed and confirmed the changes on this dialog.

C#
public event EventHandler Completed

Implements: IDialogViewModel.Completed