Back to Devexpress

Measurements.RemoveRulersCommand Property

wpf-devexpress-dot-xpf-dot-map-dot-measurements-b3be39e1.md

latest1.7 KB
Original Source

Measurements.RemoveRulersCommand Property

Returns a command that removes all rulers from the map.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public ICommand RemoveRulersCommand { get; }
vb
Public ReadOnly Property RemoveRulersCommand As ICommand

Property Value

TypeDescription
ICommand

A command that removes all rulers from the map.

|

Remarks

A Map Control should contain at least one ruler that enables a button associated with the RemoveRulersCommand.

The following markup removes all rulers from the map when a user clicks the Remove Rulers button:

xaml
<dxm:MapControl x:Name="mapControl1">
   <dxm:MapControl.Measurements>
       <dxm:Measurements x:Name="measurements">
       </dxm:Measurements>
   </dxm:MapControl.Measurements>
   <!--...-->  
</dxm:MapControl>

<dx:SimpleButton Content="Remove Rulers" HorizontalAlignment="Center" VerticalAlignment="Bottom"
                 Command="{Binding ElementName=measurements, Path=RemoveRulersCommand}">
</dx:SimpleButton>

See Also

Measurements Class

Measurements Members

DevExpress.Xpf.Map Namespace