Skip to main content

BaseEditSettings.CreateEditor(EditorOptimizationMode) Method

Creates a new editor with the specified settings.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public IBaseEdit CreateEditor(
    EditorOptimizationMode optimizationMode = EditorOptimizationMode.Disabled
)

Optional Parameters

Name Type Default Description
optimizationMode EditorOptimizationMode Disabled

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