PopupWindowShowAction.CustomizePopupWindowParams Event
Occurs when generating a pop-up Window for a Pop-up Window Show Action.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v18.2.dll
Declaration
public event CustomizePopupWindowParamsEventHandler CustomizePopupWindowParams
Public Event CustomizePopupWindowParams As CustomizePopupWindowParamsEventHandler
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);
}
}