All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Measurements.SetEditModeCommand Property

Returns the command that activates the Measurements object’s Edit mode.

Namespace: DevExpress.Xpf.Map

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

Declaration

public ICommand SetEditModeCommand { get; }

Property Value

Type Description
ICommand

The command that activates the Measurements object’s Edit mode.

Remarks

The following markup activates Edit mode when a user clicks the custom “Edit Ruler” button.

<dxm:MapControl x:Name="mapControl1">
 <dxm:MapControl.Measurements>
     <dxm:Measurements x:Name="measurements">
         <dxm:Measurements.ToolbarOptions>
             <dxm:MeasurementToolbarOptions Visible="False"/>
         </dxm:Measurements.ToolbarOptions>
     </dxm:Measurements>
 </dxm:MapControl.Measurements>
 ...  
</dxm:MapControl>

<dx:SimpleButton Content="Edit Ruler" Height="50" VerticalAlignment="Top" 
                Command="{Binding ElementName=measurements, Path=SetEditModeCommand}">
</dx:SimpleButton>
See Also