The TextEdit control is a simple text editor. It supports all basic text editing features, including selections and built-in context menu.
The TextEdit control offers the following features.
To add a standalone TextEdit to a Window, drag it from the Toolbox.
The following sample demonstrates how to create a TextEdit using XAML markup.
Xaml |
<dxe:TextEdit VerticalScrollBarVisibility="Auto" AcceptsReturn="True" NullText="Type your name here..."/>
|
To embed a TextEdit into a container control, use the TextEditSettings class.
The following sample demonstrates how to embed a TextEdit into a GridControl column.
Xaml |
<dxg:GridControl>
<dxg:GridColumn FieldName="FirstName">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridControl.View>
<dxg:TableView/>
</dxg:GridControl.View>
</dxg:GridControl>
|