DialogViewModel Class |
Namespace: BionicCode.Utilities.Net.Framework.Wpf.Dialog
public abstract class DialogViewModel : ViewModel, IDialogViewModel, IViewModel, INotifyPropertyChanged, INotifyDataErrorInfo
The DialogViewModel type exposes the following members.
| Name | Description | |
|---|---|---|
| DialogViewModel(String, String) |
Creates a nw instance of the DialogViewModel using a do-nothing dialog closed callback.
| |
| DialogViewModel(String, String, FuncIDialogViewModel, Task) |
Creates a nw instance of the DialogViewModel registering a dialog closed callback.
| |
| DialogViewModel(String, String, ImageSource, FuncIDialogViewModel, Task) |
Creates a nw instance of the DialogViewModel registering a dialog closed callback.
|
| Name | Description | |
|---|---|---|
| DialogResult |
The DialogResult of the user interaction.
| |
| HasErrors | Gets a value that indicates whether the entity has validation errors. (Inherited from ViewModel.) | |
| Message |
The message for the dialog to show to the user.
| |
| ResponseCallbackAsync |
The asynchronous callback that is invoked during the dialog interaction. Use this callback as continuation of the interrupted flow, after the required data was collected by the dialog.
| |
| SendResponseAsyncCommand |
ICommand that can be bound to the buttons of the dialog. The command parameter is a DialogResult.
| |
| Title |
The title of the dialog Window | |
| TitleBarIcon |
The icon to display in the title bar of the Window
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| ExecuteSendResponseCommandAsync |
Asynchronously called when the SendResponseAsyncCommand is executed.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetErrors |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
(Inherited from ViewModel.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetPropertyErrors |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
(Inherited from ViewModel.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsValueValidTValue |
Can be used to check whether a value is valid.
(Inherited from ViewModel.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnErrorsChanged |
Raised when the validation state of the view model has changed (e.g. error added or removed).
(Inherited from ViewModel.) | |
| OnInteractionCompleted |
Event invocator of the InteractionCompleted event. Raising this event will request the dialog to be closed.
| |
| OnPropertyChanged |
Method called to fire a PropertyChanged event.
Also raises the PropertyChanged event to support binding.
(Inherited from ViewModel.) | |
| PropertyHasError |
Checks whether the specified property has errors or is valid.
(Inherited from ViewModel.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| TrySetValueTValue(TValue, TValue, String) |
Generic property setter. Sets the value of any property of the extending view model by passing in a the corresponding property backing field. Automatically raises the PropertyChanged event for this property.
(Inherited from ViewModel.) | |
| TrySetValueTValue(TValue, FuncTValue, ValueTupleBoolean, IEnumerableString, TValue, Boolean, Boolean, String) |
Sets the value of the referenced property and executes a validation delegate.
(Inherited from ViewModel.) | |
| TrySetValueSilentTValue(TValue, TValue, String) |
Generic property setter. Silently sets the value of any property of the extending view model by passing in a the corresponding property backing field. Suppresses a PropertyChanged event for this property.
(Inherited from ViewModel.) | |
| TrySetValueSilentTValue(TValue, FuncTValue, ValueTupleBoolean, IEnumerableString, TValue, Boolean, Boolean, String) |
Silently sets the value of the referenced property without raising PropertyChanged and executes a validation delegate.
(Inherited from ViewModel.) |
| Name | Description | |
|---|---|---|
| ErrorsChanged | Occurs when the validation errors have changed for a property or for the entire entity. (Inherited from ViewModel.) | |
| InteractionCompleted |
Event to signal that the interaction with the dialog is completed.
| |
| PropertyChanged |
Event fired whenever a child property changes its value.
(Inherited from ViewModel.) | |
| PropertyValueChanged |
PropertyChanged implementation that sends old value and new value of the change and raises the INotifyPropertyChanged event.
(Inherited from ViewModel.) |
| Name | Description | |
|---|---|---|
| ToDictionary | Overloaded.
Coverts any type to a DictionaryTKey, TValue, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) | |
| ToDictionary | Overloaded.
Coverts any type to a DictionaryTKey, TValue, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) |