Back to Devexpress

BarEditItem.EditWidth Property

wpf-devexpress-dot-xpf-dot-bars-dot-baredititem-ea009a61.md

latest5.3 KB
Original Source

BarEditItem.EditWidth Property

Gets or sets the current BarEditItem‘s width.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public double? EditWidth { get; set; }
vb
Public Property EditWidth As Double?

Property Value

TypeDescription
Nullable<Double>

A Double value that is the current BarEditItem‘s width.

|

Remarks

Any editor embedded in a BarEditItem automatically gains the size required to display its content. You can manually specify the editor’s height and width via the EditWidth and BarEditItem.EditHeight properties. The figure below illustrates an example: multiple edit items have different heights and widths.

These properties also specify sizes for all BarEditItemLinks related to the current BarEditItem. To set a unique size for an individual BarEditItemLink, use the BarEditItemLink.EditHeight and BarEditItemLink.EditWidth properties instead.

Note

The EditWidth property affects only those in-place editors that are built-in via the BarEditItem.EditSettings property. The EditWidth property is not in effect for editors that are built-in via the BarEditItem.EditTemplate property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EditWidth 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-spreadsheet-assign-custom-in-place-editors/CS/WpfSpreadsheet_CustomCellEditors/MainWindow.xaml#L44

xml
</dxr:BarButtonGroup>
<dxb:BarEditItem x:Name="biFormatFontName" Content="" Command="{Binding FormatFontName, Mode=OneTime, Source={StaticResource commands}}" EditWidth="150">
    <dxb:BarEditItem.EditSettings>

wpf-spreadsheet-bind-spreadsheet-to-ms-sql-server-database/CS/WpfSpreadsheet_BindToDataSource/MainWindow.xaml#L44

xml
</dxr:BarButtonGroup>
<dxb:BarEditItem x:Name="biFormatFontName" Content="" Command="{Binding FormatFontName, Mode=OneTime, Source={StaticResource commands}}" EditWidth="150">
    <dxb:BarEditItem.EditSettings>

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/CS/DataBindingToListExample/MainWindow.xaml#L39

xml
</dxr:BarButtonGroup>
<dxb:BarEditItem x:Name="biFormatFontName" Content="" Command="{Binding FormatFontName, Mode=OneTime, Source={StaticResource commands}}" EditWidth="150">
    <dxb:BarEditItem.EditSettings>

wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L87

xml
<dxb:BarEditItem x:Name="eRibbonStyle" Content="Ribbon Style:"
    EditWidth="100"
    ClosePopupOnChangingEditValue="True"

wpf-mvvm-behaviors-barItems-based-theme-selectors/CS/WpfApplication1/MainWindow.xaml#L23

xml
EditValue="{Binding RibbonStyle, ElementName=RibbonControl}"
EditWidth="100">
<dxb:BarEditItem.EditSettings>

See Also

EditHeight

BarEditItem Class

BarEditItem Members

DevExpress.Xpf.Bars Namespace