Back to Devexpress

ButtonEdit.IsTextEditable Property

wpf-devexpress-dot-xpf-dot-editors-dot-buttonedit-f4dc5a12.md

latest4.9 KB
Original Source

ButtonEdit.IsTextEditable Property

Gets or sets whether end-users are allowed to edit the text displayed in the edit box. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(true)]
public bool? IsTextEditable { get; set; }
vb
<DefaultValue(True)>
Public Property IsTextEditable As Boolean?

Property Value

TypeDefaultDescription
Nullable<Boolean>true

true, to allow end-users to edit the text displayed in the edit box; otherwise, false.

|

Remarks

If the IsTextEditable property is set to false , end-users are not allowed to change, select and copy the text displayed in the edit box, but can click editor buttons (if any). To allow end-users to copy the text, but prevent the text from being edited set the IsTextEditable and BaseEdit.IsReadOnly properties to true. To completely disable the editor (to prevent editing its value and clicking its buttons), set the IsEnabled property to false.

The EditNonEditableTemplate property specifies the editor’s template if the IsTextEditable property is set to false.

Drop-down editors display their drop-down windows when an end-user clicks the editor’s edit box if the IsTextEditable property is set to true.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsTextEditable 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-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/ServerMode/IssueDetailView.xaml#L14

xml
ValueMember="Id" DisplayMember="Name"
                      IsTextEditable="False" />
</dxlc:LayoutItem>

wpf-synchronous-theme-preload-with-splashscreen/CS/ThemePreloadwithSplashscreen/ComplexWindow.xaml#L67

xml
EditValue="{Binding Path=Prefix, Mode=TwoWay}"
IsTextEditable="False">
<dxmvvm:Interaction.Behaviors>

wpf-gridcontrol-populate-inplace-comboboxedit-with-values-based-on-values-from-other-cells/CS/MainWindow.xaml#L28

xml
FilterCriteria="{Binding RowData.Row.FilterType, Converter={local:FilterConverter}}"
IsTextEditable="False"
Name="PART_Editor"

wpf-reporting-use-custom-controls-for-editing-report-content-in-print-preview/CS/App.xaml#L12

xml
<dxe:ComboBoxEdit ItemsSource="{Binding Path=(dxp:DocumentPreviewControl.ActualViewer).DataContext.ComboBoxItemsSource, RelativeSource={RelativeSource Self}}"
                  IsTextEditable="False" x:Name="PART_Editor"/>
</DataTemplate>

reporting-wpf-report-designer-customize-controls-smart-tag/CS/App.xaml#L79

xml
<dxe:ComboBoxEdit EditValue="{Binding CheckState, UpdateSourceTrigger=PropertyChanged}"
              IsTextEditable="False"
              ItemsSource="{dxe:EnumItemsSource EnumType=forms:CheckState}"

See Also

IsReadOnly

IsTextEditable

ButtonEdit Class

ButtonEdit Members

DevExpress.Xpf.Editors Namespace