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