Skip to main content
A newer version of this page is available. .

BaseEditSettings.CreateEditor(EditorOptimizationMode) Method

Creates a new editor with the specified settings.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

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