Class DialogViewModel
A base class for the various pivot field list editing dialogs view models.
Inherited Members
Namespace: Telerik.Windows.Controls.FieldList.Editing
Assembly: Telerik.Windows.Controls.PivotFieldList.dll
Syntax
public abstract class DialogViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IDialogViewModel
Properties
Cancel
Gets the Cancel System.Windows.Input.ICommand for this dialog.
Declaration
public ICommand Cancel { get; }
Property Value
System.Windows.Input.ICommand
|
Implements
IsAvailable
Gets a value that indicates if the editing is possible.
Declaration
public bool IsAvailable { get; }
Property Value
System.Boolean
|
IsWorking
Gets a value that indicates if the dialog is waiting on results.
Declaration
public bool IsWorking { get; protected set; }
Property Value
System.Boolean
|
Ok
Gets the Ok System.Windows.Input.ICommand for this dialog.
Declaration
public ICommand Ok { get; }
Property Value
System.Windows.Input.ICommand
|
Implements
Refresh
Gets the Refresh System.Windows.Input.ICommand for this dialog.
Declaration
public ICommand Refresh { get; }
Property Value
System.Windows.Input.ICommand
|
RequiresRefresh
Gets a value that indicates if the editing requires recent IPivotResults data.
Declaration
public bool RequiresRefresh { get; protected set; }
Property Value
System.Boolean
|
Methods
AttachToServices()
Attach to the new services.
Declaration
protected virtual void AttachToServices()
CanExecuteOk(Object)
Checks if the Ok System.Windows.Input.ICommand can be executed.
Declaration
protected virtual bool CanExecuteOk(object parameter)
Parameters
System.Object
parameter
The parameters. |
Returns
System.Boolean
True if System.Windows.Input.ICommand can be executed. Otherwise - false. |
DetachFromServices()
Detach the previous services.
Declaration
protected virtual void DetachFromServices()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
ExecuteOk(Object)
Handles the Ok execution.
Declaration
protected virtual void ExecuteOk(object parameter)
Parameters
System.Object
parameter
|
ExecuteRefresh(Object)
Handles the Refresh execution.
Declaration
protected virtual void ExecuteRefresh(object parameter)
Parameters
System.Object
parameter
|
RetrieveServices(IServiceProvider)
Retrieve the services from the serviceProvider
. You could use the Telerik.Windows.Controls.FieldList.Editing.DialogViewModel.Context if you do not want the IsAvailable to track your requests.
Declaration
protected virtual void RetrieveServices(IServiceProvider serviceProvider)
Parameters
System.IServiceProvider
serviceProvider
The System.IServiceProvider to retrieve services from. This is a slim wrapper around the Telerik.Windows.Controls.FieldList.Editing.DialogViewModel.Context 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 Type
System.EventHandler
|
Implements
Completed
Invoked when the user completed and confirmed the changes on this dialog.
Declaration
public event EventHandler Completed
Event Type
System.EventHandler
|