Skip to main content
A newer version of this page is available. .

PopupBaseEdit.PopupContentTemplate Property

Gets or sets the template that defines the presentation of the popup window’s content. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public ControlTemplate PopupContentTemplate { get; set; }

Property Value

Type Description
ControlTemplate

A ControlTemplate object that represents the template of the popup window’s content.

Remarks

The PopupContentTemplate property allows you to specify the popup window content.

Use the PopupElement property to get the control placed to the popup window (for example, for the PopupCalcEdit, the PopupElement property returns a Calculator). The PopupRoot allows you to get a root element within the popup.

Set the AllowRecreatePopupContent property to true to recreate the popup content each time the editor displays its popup.

Note

For the LookupEdit control:

If you use the PopupContentTemplate property to embed a customized GridControl to the LookUpEdit the embedded grid control’s x:Name attribute must be set to PART_GridControl.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PopupContentTemplate 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.

See Also