Back to Devexpress

MapEditorCreateMode Class

wpf-devexpress-dot-xpf-dot-map-77370e38.md

latest3.9 KB
Original Source

MapEditorCreateMode Class

The Map Editor‘s mode in which end users can add new map items.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class MapEditorCreateMode :
    MapEditorModeBase
vb
Public Class MapEditorCreateMode
    Inherits MapEditorModeBase

Remarks

The following built-in Editor Panel‘s icons allow you to enable the mode: , , , , , or .

The Editor uses mouse actions like click or drag over the Map to create a new map item:

The markup below translates the Editor to this mode at design time:

xaml
<dxm:MapEditor>
    <dxm:MapEditor.Mode>
        <dxm:MapEditorCreateMode>
            <!-- This property specifies a new item's type and default settings. -->
            <dxm:MapEditorCreateMode.MapItemSettings>
                <dxm:MapPathSettings/>
            </dxm:MapEditorCreateMode.MapItemSettings>
        </dxm:MapEditorCreateMode>
    </dxm:MapEditor.Mode>
</dxm:MapEditor>

The code above uses the following properties and classes:

SymbolDescription
MapEditor.ModeGets or sets the mode that the Map Editor currently uses.
MapEditorCreateModeThe Map Editor‘s mode in which end users can add new map items.
MapEditorCreateMode.MapItemSettingsGets or sets an object that configures map items that end users can create.
MapItemSettingsBaseThe base class for all map items settings classes.

Note

The Editor’s mode can be set to Create at runtime using the MapEditor.SetCreateModeCommand command. Refer to the How to: Implement a Custom UI using the Map Editor API section to learn more about the Editor’s commands.

Inheritance

Object DispatcherObject DependencyObject Freezable MapDependencyObject MapEditorModeBase MapEditorCreateMode

See Also

MapEditorCreateMode Members

DevExpress.Xpf.Map Namespace