ShowViewParameters.TargetWindow Property
Specifies the type of the Window that will embed the target View.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public TargetWindow TargetWindow { get; set; }
#Property Value
Type | Description |
---|---|
Target |
A Target |
Available values:
Name | Description |
---|---|
Default | The target View will be displayed in the Window whose type is determined by the active Show |
Current | The target View will be displayed in the current Window. |
New |
The target View will be displayed in a newly created Window. |
New |
The View will be displayed in a newly created modal Window. |
#Remarks
Use this property to specify in what Window the target View should be displayed. The following table lists the available values, and describes how they are considered by the built-in Windows Forms and ASP.NET Web Forms ShowViewStrategies:
Target | Windows Forms Show | ASP. |
---|---|---|
New | If the Show If the Show Otherwise, the target View will displayed in a separate Window with the template context specified by the Show | The target View will be displayed in a pop-up window with the Popup |
New | The behavior is the same as the New | The same behavior as the New |
Default | If the current Frame (source Frame) is nested, the target View will be displayed in a separate modal Window, as if you had set the New In all other cases, a new Window with the View Template context will be created if the current View is the Detail View. If the current View is List View, the current Window (Frame) will be used to set the target | If the current Frame is a lookup Frame, the target View will be displayed in a pop-up Window with the Popup Otherwise, the current Window |
Current | The current Window (Frame) will be used to set the target View. | The current Window (Frame) will be used to set the target View. |
By default, this property is set to TargetWindow.Default.
To specify a Template for the target Window, use the ShowViewParameters.Context property.
Note
When a window created via Popup
#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.