Property | Type | Description | |
---|---|---|---|
RegisteredWindows | Type>.Dictionary |
Method | Description | |
---|---|---|
IsRegistered ( string name ) : bool |
Determines whether the specified name is registered.
|
|
Register ( string name, |
Registers the specified view model and the window type. This way, Catel knowns what window to show when a specific view model window is requested.
|
|
Show ( IViewModel viewModel, EventHandler |
Shows a window that is registered with the specified view model in a non-modal state.
|
|
Show ( string name, object data, EventHandler |
Shows a window that is registered with the specified view model in a non-modal state.
|
|
ShowAsync ( IViewModel viewModel, EventHandler |
Shows a window that is registered with the specified view model in a non-modal state.
|
|
ShowAsync ( string name, object data, EventHandler |
Shows a window that is registered with the specified view model in a non-modal state.
|
|
ShowDialog ( IViewModel viewModel, EventHandler |
Shows a window that is registered with the specified view model in a modal state.
|
|
ShowDialog ( string name, object data, EventHandler |
Shows a window that is registered with the specified view model in a modal state.
|
|
ShowDialogAsync ( IViewModel viewModel, EventHandler |
Shows a window that is registered with the specified view model in a modal state.
|
|
ShowDialogAsync ( string name, object data, EventHandler |
Shows a window that is registered with the specified view model in a modal state.
|
|
UIVisualizerService ( IViewLocator viewLocator ) : System |
Initializes a new instance of the UIVisualizerService class.
|
|
UIVisualizerService ( IViewLocator viewLocator, ITypeFactory typeFactory, ILanguageService languageService ) : System |
Initializes a new instance of the UIVisualizerService class.
|
|
Unregister ( string name ) : bool |
This unregisters the specified view model.
|
Method | Description | |
---|---|---|
CreateWindow ( |
This creates the window of the specified type.
|
|
CreateWindow ( string name, object data, EventHandler |
This creates the window from a key.
|
|
EnsureViewIsRegistered ( string name ) : void |
Ensures that the specified view is registered.
|
|
GetActiveWindow ( ) : |
Gets the active window to use as parent window of new windows.
|
|
HandleCloseSubscription ( object window, object data, EventHandler |
Handles the close subscription.
|
|
RegisterViewForViewModelIfRequired ( |
Registers the view for the specified view model if required.
|
|
ShowWindow ( FrameworkElement window, bool showModal ) : bool? |
Shows the window.
|
|
ShowWindowAsync ( FrameworkElement window, bool showModal ) : Task |
Shows the window.
|
Method | Description | |
---|---|---|
CloseModal ( ) : System.Threading.Tasks.Task |
|
|
DisplayUsingNavigation ( IViewModel viewModel, EventHandler |
|
|
OnBackButtonPressed ( object sender, |
|
|
OnCancelButtonClicked ( IViewModel viewModel, EventHandler |
|
|
OnOkButtonClicked ( IViewModel viewModel, EventHandler |
|
|
TryDisplayAsPopup ( IViewModel viewModel, EventHandler |
|
protected CreateWindow ( |
||
windowType | The type of the window. | |
data | object | The data that will be set as data context. |
completedProc | EventHandler |
The completed callback. |
isModal | bool | True if this is a ShowDialog request. |
return |
protected CreateWindow ( string name, object data, EventHandler |
||
name | string | The name that the window is registered with. |
data | object | The data that will be set as data context. |
completedProc | EventHandler |
The completed callback. |
isModal | bool | True if this is a ShowDialog request. |
return |
protected EnsureViewIsRegistered ( string name ) : void | ||
name | string | The name. |
return | void |
protected GetActiveWindow ( ) : |
||
return |
protected HandleCloseSubscription ( object window, object data, EventHandler |
||
window | object | The window. |
data | object | The data that will be set as data context. |
completedProc | EventHandler |
The completed callback. |
isModal | bool | True if this is a ShowDialog request. |
return | void |
public IsRegistered ( string name ) : bool | ||
name | string | The name. |
return | bool |
public Register ( string name, |
||
name | string | Name of the registered window. |
windowType | Type of the window. | |
throwExceptionIfExists | bool |
/// if set to |
return | void |
protected RegisterViewForViewModelIfRequired ( |
||
viewModelType | Type of the view model. | |
return | void |
public Show ( IViewModel viewModel, EventHandler |
||
viewModel | IViewModel | The view model. |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | bool? |
public Show ( string name, object data, EventHandler |
||
name | string | The name that the window is registered with. |
data | object | The data to set as data context. If |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | bool? |
public ShowAsync ( IViewModel viewModel, EventHandler |
||
viewModel | IViewModel | The view model. |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | Task |
public ShowAsync ( string name, object data, EventHandler |
||
name | string | The name that the window is registered with. |
data | object | The data to set as data context. If |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | Task |
public ShowDialog ( IViewModel viewModel, EventHandler |
||
viewModel | IViewModel | The view model. |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | bool? |
public ShowDialog ( string name, object data, EventHandler |
||
name | string | The name that the window is registered with. |
data | object | The data to set as data context. If |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | bool? |
public ShowDialogAsync ( IViewModel viewModel, EventHandler |
||
viewModel | IViewModel | The view model. |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | Task |
public ShowDialogAsync ( string name, object data, EventHandler |
||
name | string | The name that the window is registered with. |
data | object | The data to set as data context. If |
completedProc | EventHandler |
/// The callback procedure that will be invoked as soon as the window is closed. This value can
/// be |
return | Task |
protected ShowWindow ( FrameworkElement window, bool showModal ) : bool? | ||
window | FrameworkElement | The window. |
showModal | bool | If |
return | bool? |
protected ShowWindowAsync ( FrameworkElement window, bool showModal ) : Task |
||
window | FrameworkElement | The window. |
showModal | bool | If |
return | Task |
public UIVisualizerService ( IViewLocator viewLocator ) : System | ||
viewLocator | IViewLocator | The view locator. |
return | System |
public UIVisualizerService ( IViewLocator viewLocator, ITypeFactory typeFactory, ILanguageService languageService ) : System | ||
viewLocator | IViewLocator | |
typeFactory | ITypeFactory | |
languageService | ILanguageService | |
return | System |
public Unregister ( string name ) : bool | ||
name | string | Name of the registered window. |
return | bool |