ShowViewParameters.TargetWindow Property
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| TargetWindow | Default | The type of the target window. |
Remarks
The TargetWindow property specifies the Window where the CreatedView appears. XAF determines the particular target window type based on the combination of the following settings:
- Current Platform
- Current Show View Strategy (the
UITypeproperty value) TargetWindow- NewWindowTarget
The following tables list window types that display the target View based on the specified property values.
ASP.NET Core Blazor UI
| TargetWindow | UIType = SingleWindowSDI | UIType = TabbedMDI |
|---|---|---|
Default |
- If the current Frame is a Nested Frame, the View is displayed in a new modal Window. In other cases, the View is displayed in the current Window (Frame). |
- If the current Frame is a nested frame or the current Window is a Popup Window, the View is displayed in a new modal Window. In other cases, the View is displayed in a new tab in the main Window. |
Current |
The View is displayed in the current Window (Frame). | The View is displayed in the current Window (Frame). If the current Window is the main Window, the View is displayed in a new tab in the main Window. |
NewWindow |
The View is displayed in a new modal Window. | - If the NewWindowTarget property is set to Default or MdiChild, the View is displayed in a new tab in the main Window.- If the NewWindowTarget property is set to Separate, the View is displayed in a new modal Window. |
NewModalWindow |
The View is displayed in a new modal Window. | The View is displayed in a new modal Window. |
When the application displays the target view in a modal Window, the Window layout and appearance is defined by the PopupWindowTemplate context. The system adds a DialogController to the Window’s Frame.Controllers collection.
Windows Forms
| TargetWindow | UIType = SingleWindowSDI or UIType = MultipleWindowSDI | UIType = StandardMDI or UIType = TabbedMDI |
|---|---|---|
Default |
If the current Frame is a Nested Frame, the behavior is equivalent to the NewModalWindow option.SingleWindowSDI: If the current Window is the main Window, the behavior is equivalent to the NewWindow option.In other cases, the View is displayed in the current Window (Frame). MultipleWindowSDI: The behavior depends on the View: - If the current View is a Detail View, the new Window displays the View template context. - If the current View is a List View, the current Window (Frame) displays the target View. |
- If the current Frame is a nested frame or the current Window is a Popup Window, the View is displayed in a new modal Window. In other cases, the behavior is equivalent to the NewWindow option. |
Current |
The View is displayed in the current Window (Frame). | The View is displayed in the current Window (Frame). If the current Window is an Explorer Window, the behavior is equivalent to the NewWindow option. |
NewWindow |
The View is displayed in a new separate Window. | - If the NewWindowTarget property is set to Default or MdiChild, the View is displayed in a new MDI child Window (in the StandardMDI UI) or a new tab (in the TabbedMDI UI) in the main Window.- If the NewWindowTarget property is set to Separate, the View is displayed in a new separate Window. |
NewModalWindow |
The View is displayed in a new modal Window. | The View is displayed in a new modal Window. |
Note
In ASP.NET Core Blazor applications, if you use ShowViewParameters to display a new window, the application does not refresh the original View after you close the window. In contrast, windows that you create with PopupWindowShowAction update the parent View when you close them.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the TargetWindow property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.