PopupWindowShowAction.CustomizePopupWindowParams Event
Occurs when generating a pop-up Window for a Pop-up Window Show Action.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Event Data
The CustomizePopupWindowParams event's data class is CustomizePopupWindowParamsEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Action | Provides access to the Pop-up Window Show Action for which the PopupWindowShowAction.CustomizePopupWindowParams event has been raised. |
Application | Provides access to an XafApplication object that provides methods and properties to manage the current application. |
Context | Specifies the Frame.Context of the pop-up window which is customized by a PopupWindowShowAction.CustomizePopupWindowParams event’s handler. |
DialogController | Specifies a Dialog Controller which is activated for a Pop-up Window Show Action’s pop-up Window. |
IsSizeable | Specifies whether the pop-up Window created for a Pop-up Window Show Action is sizable. |
Maximized | Gets or sets a value that specifies whether the window is maximized. |
Size | Specifies the size of a pop-up window. |
View | Specifies the View that should be displayed by the Pop-up Window Show Action’s pop-up Window. |
Remarks
Handle this event to specify a View for a PopupWindowShowAction to show. For this purpose, use the handler’s CustomizePopupWindowParamsEventArgs.View parameter. You can also use the CustomizePopupWindowParamsEventArgs.IsSizeable property, to specify the pop-up Window’s ability to be sizable.
The following example creates a List View and displays it via a PopupWindowShowAction.
using System;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
// ...
public class ShowListViewController : ViewController {
public ShowListViewController() {
PopupWindowShowAction showListViewAction = new PopupWindowShowAction(this, "ShowListView",
PredefinedCategory.Edit);
showListViewAction.CustomizePopupWindowParams += ShowListViewAction_CustomizePopupWindowParams;
}
private void ShowListViewAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) {
Type objectType = typeof(Person);
e.View = Application.CreateListView(objectType, true);
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CustomizePopupWindowParams event.
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.