BaseEditSettings.CreateEditor(EditorOptimizationMode) Method

Creates a new editor with the specified settings.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v21.1.dll

Declaration

public IBaseEdit CreateEditor(
    EditorOptimizationMode optimizationMode = EditorOptimizationMode.Disabled
)

Optional Parameters

Name Type Default Description
optimizationMode EditorOptimizationMode

0

A EditorOptimizationMode enumeration value.

Returns

Type Description
DevExpress.Xpf.Editors.IBaseEdit

An object implementing the DevExpress.Xpf.Editors.IBaseEdit interface.

Remarks

Use the CreateEditor property to create a required editor programmatically.

The following example demonstrates a text editor created in code-behind.

<Window ...>
    <Grid>
        <ContentControl x:Name="editorContainer" />
    </Grid>
</Window>
See Also