Class
DialogViewModel

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

Definition

Namespace:Telerik.Windows.Controls.FieldList.Editing

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

cs-api-definition
public abstract class DialogViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IDialogViewModel

Inheritance: objectViewModelBaseDialogViewModel

Derived Classes: PivotSettingsViewModel

Implements: IDialogViewModelIDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.PropertyChanged

Properties

Cancel

Gets the Cancel ICommand for this dialog.

Declaration

cs-api-definition
public ICommand Cancel { get; }

Property Value

ICommand

Implements IDialogViewModel.Cancel

IsAvailable

Gets a value that indicates if the editing is possible.

Declaration

cs-api-definition
public bool IsAvailable { get; }

Property Value

bool

IsWorking

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

Declaration

cs-api-definition
public bool IsWorking { get; protected set; }

Property Value

bool

Ok

Gets the Ok ICommand for this dialog.

Declaration

cs-api-definition
public ICommand Ok { get; }

Property Value

ICommand

Implements IDialogViewModel.Ok

Refresh

Gets the Refresh ICommand for this dialog.

Declaration

cs-api-definition
public ICommand Refresh { get; }

Property Value

ICommand

RequiresRefresh

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

Declaration

cs-api-definition
public bool RequiresRefresh { get; protected set; }

Property Value

bool

Methods

AttachToServices()

Attach to the new services.

Declaration

cs-api-definition
protected virtual void AttachToServices()

CanExecuteOk(object)

Checks if the Ok ICommand can be executed.

Declaration

cs-api-definition
protected virtual bool CanExecuteOk(object parameter)

Parameters

parameter

object

The parameters.

Returns

bool

True if ICommand can be executed. Otherwise - false.

DetachFromServices()

Detach the previous services.

Declaration

cs-api-definition
protected virtual void DetachFromServices()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

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

Overrides ViewModelBase.Dispose(bool)

ExecuteOk(object)

Handles the Ok execution.

Declaration

cs-api-definition
protected virtual void ExecuteOk(object parameter)

Parameters

parameter

object

ExecuteRefresh(object)

Handles the Refresh execution.

Declaration

cs-api-definition
protected virtual void ExecuteRefresh(object parameter)

Parameters

parameter

object

RetrieveServices(IServiceProvider)

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

Declaration

cs-api-definition
protected virtual void RetrieveServices(IServiceProvider serviceProvider)

Parameters

serviceProvider

IServiceProvider

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

Canceled

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

Declaration

cs-api-definition
public event EventHandler Canceled

Event Value

EventHandler

Implements IDialogViewModel.Canceled

Completed

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

Declaration

cs-api-definition
public event EventHandler Completed

Event Value

EventHandler

Implements IDialogViewModel.Completed