Back to Devexpress

LookUpEdit.IsPopupAutoWidth Property

wpf-devexpress-dot-xpf-dot-grid-dot-lookup-dot-lookupedit-d0f97338.md

latest2.5 KB
Original Source

LookUpEdit.IsPopupAutoWidth Property

Gets or sets whether the dropdown’s width matches the width of the edit box. This is a dependency property.

Namespace : DevExpress.Xpf.Grid.LookUp

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool IsPopupAutoWidth { get; set; }
vb
Public Property IsPopupAutoWidth As Boolean

Property Value

TypeDescription
Boolean

true if the dropdown’s width matches the width of the edit box; otherwise, false.

|

Remarks

The dropdown’s width is specified by the PopupBaseEdit.PopupWidth property. If this property is not specified, use the IsPopupAutoWidth property, to specify how the dropdown’s width is calculated when it is shown for the first time.

If the IsPopupAutoWidth property is set to true , the dropdown’s initial width matches the width of the edit box. If the IsPopupAutoWidth property is set to false , the dropdown’s width matches the width of its contents.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsPopupAutoWidth 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.

wpf-lookupedit-process-new-values/CS/HowToCreateLookUpEdit/MainWindow.xaml#L37

xml
ImmediatePopup="True"
            IsPopupAutoWidth="False">
<dxmvvm:Interaction.Behaviors>

See Also

LookUpEdit Class

LookUpEdit Members

DevExpress.Xpf.Grid.LookUp Namespace