Method MapDialog
MapDialog(Type, Func<object>)
Maps a dialog view model type to a factory that creates the framework-specific dialog object for it.
Declaration
protected void MapDialog(Type viewModelType, Func<object> activator)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | viewModelType | The dialog view model type. |
| Func<object> | activator | A factory delegate that creates a new framework dialog object instance. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | A dialog has already been mapped for the specified view model type. |