Skip to main content
All docs
V24.1

Measurements.SetEditModeCommand Property

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

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

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