wpf-devexpress-dot-xpf-dot-map-dot-measurements-7a3b1d79.md
Returns the command that activates the Measurements object’s Edit mode.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public ICommand SetEditModeCommand { get; }
Public ReadOnly Property SetEditModeCommand As ICommand
| Type | Description |
|---|---|
| ICommand |
The command that activates the Measurements object’s Edit mode.
|
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