expressappframework-devexpress-dot-expressapp-dot-actions-dot-customizepopupwindowparamseventargs.md
Specifies the View that should be displayed by the Pop-up Window Show Action’s pop-up Window.
Namespace : DevExpress.ExpressApp.Actions
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public View View { get; set; }
Public Property View As View
| Type | Description |
|---|---|
| View |
A View object that actuallly represents a DetailView or ListView.
|
To create a View to be displayed by the current Pop-up Window Show Action’s pop-up Window, use one of the following methods: XafApplication.ProcessShortcut, XafApplication.CreateDetailView or XafApplication.CreateListView.
The following code snippets (auto-collected from DevExpress Examples) contain references to the View 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.
private void showPopupAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) {
e.View = Application.CreateListView(e.Application.CreateObjectSpace(typeof(Contact)), typeof(Contact), false);
}
var template = os.CreateObject<OrderTemplate>();
e.View = Application.CreateDetailView(os, template);
}
DetailView detailView = Application.CreateDetailView(objectSpace, objectSpace.GetObjects<Singleton>()[0]);
e.View = detailView;
}
var duplicatesList = CreateDuplicatesList(duplicatesDictionary, nonPersistentObjectSpace);
e.View = Application.CreateDetailView(nonPersistentObjectSpace, duplicatesList);
e.DialogController.SaveOnAccept = false;
IObjectSpace objectSpace = e.Application.CreateObjectSpace(typeof(SettingsStore));
e.View = e.Application.CreateDetailView(objectSpace, objectSpace.CreateObject<SettingsStore>());
}
See Also
CustomizePopupWindowParamsEventArgs Class