wpf-devexpress-dot-xpf-dot-map-dot-mapeditor-48e1b3ab.md
Returns the command that switches the Editor to the Create mode.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public ICommand SetCreateModeCommand { get; }
Public ReadOnly Property SetCreateModeCommand As ICommand
| Type | Description |
|---|---|
| ICommand |
The command that switches the Editor to the Create mode.
|
This command receives a MapItemSettingsBase object as the command parameter. The object specifies the type of a new map item and provides the default item configuration.
<dxm:MapControl x:Name="mapControl1">
<dxm:MapControl.MapEditor>
<dxm:MapEditor x:Name="editor">
<dxm:MapEditor.EditorPanelOptions>
<dxm:MapEditorPanelOptions Visible="False"/>
</dxm:MapEditor.EditorPanelOptions>
</dxm:MapEditor>
</dxm:MapControl.MapEditor>
...
</dxm:MapControl>
<dx:SimpleButton Content="Add Rectangle" HorizontalAlignment="Left"
Height="100" VerticalAlignment="Top"
Command="{Binding ElementName=editor, Path=SetCreateModeCommand}">
<dx:SimpleButton.CommandParameter>
<dxm:MapRectangleSettings/>
</dx:SimpleButton.CommandParameter>
</dx:SimpleButton>
See Also