Skip to main content
A newer version of this page is available. .
All docs
V21.2

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

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