Свойство | Type | Description | |
---|---|---|---|
RegisteredWindows | Type>.Dictionary |
Méthode | 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.
|
Méthode | 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.
|
Méthode | 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. |
Résultat |
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. |
Résultat |
protected EnsureViewIsRegistered ( string name ) : void | ||
name | string | The name. |
Résultat | void |
protected GetActiveWindow ( ) : |
||
Résultat |
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. |
Résultat | void |
public IsRegistered ( string name ) : bool | ||
name | string | The name. |
Résultat | bool |
public Register ( string name, |
||
name | string | Name of the registered window. |
windowType | Type of the window. | |
throwExceptionIfExists | bool |
/// if set to |
Résultat | void |
protected RegisterViewForViewModelIfRequired ( |
||
viewModelType | Type of the view model. | |
Résultat | 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 |
Résultat | 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 |
Résultat | 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 |
Résultat | 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 |
Résultat | 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 |
Résultat | 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 |
Résultat | 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 |
Résultat | 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 |
Résultat | Task |
protected ShowWindow ( FrameworkElement window, bool showModal ) : bool? | ||
window | FrameworkElement | The window. |
showModal | bool | If |
Résultat | bool? |
protected ShowWindowAsync ( FrameworkElement window, bool showModal ) : Task |
||
window | FrameworkElement | The window. |
showModal | bool | If |
Résultat | Task |
public UIVisualizerService ( IViewLocator viewLocator ) : System | ||
viewLocator | IViewLocator | The view locator. |
Résultat | System |
public UIVisualizerService ( IViewLocator viewLocator, ITypeFactory typeFactory, ILanguageService languageService ) : System | ||
viewLocator | IViewLocator | |
typeFactory | ITypeFactory | |
languageService | ILanguageService | |
Résultat | System |
public Unregister ( string name ) : bool | ||
name | string | Name of the registered window. |
Résultat | bool |