ClassDialogViewModel
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:
public abstract class DialogViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IDialogViewModel
Inheritance: objectViewModelBaseDialogViewModel
Derived Classes:
Implements:
Inherited Members
Properties
IsAvailable
Gets a value that indicates if the editing is possible.
IsWorking
Gets a value that indicates if the dialog is waiting on results.
RequiresRefresh
Gets a value that indicates if the editing requires recent IPivotResults data.
Declaration
public bool RequiresRefresh { get; protected set; }
Property Value
Methods
AttachToServices()
Attach to the new services.
Declaration
protected virtual void AttachToServices()
DetachFromServices()
Detach the previous services.
Declaration
protected virtual void DetachFromServices()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources.
false to release only unmanaged resources.
Overrides
ExecuteOk(object)
Handles the Ok execution.
Declaration
protected virtual void ExecuteOk(object parameter)
Parameters
parameter
ExecuteRefresh(object)
Handles the Refresh execution.
Declaration
protected virtual void ExecuteRefresh(object parameter)
Parameters
parameter
RetrieveServices(IServiceProvider)
Retrieve the services from the serviceProvider. You could use the if you do not want the IsAvailable to track your requests.
Declaration
protected virtual void RetrieveServices(IServiceProvider serviceProvider)
Parameters
serviceProvider
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
public event EventHandler Canceled
Event Value
Implements
Completed
Invoked when the user completed and confirmed the changes on this dialog.
Declaration
public event EventHandler Completed
Event Value
Implements