All docs
V20.2
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.

MeasurementsControl Class

Contains appearance settings for all map rulers.

Namespace: DevExpress.Xpf.Map

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

Declaration

[NonCategorized]
public class MeasurementsControl :
    Control
<NonCategorized>
Public Class MeasurementsControl
    Inherits Control

Examples

Use the MeasurementsControl object to specify appearance settings for all map rulers. The following example changes the ruler fill color, opacity, line color, and line thickness:

Map ruler style

<Window.Resources>
   <Style TargetType="{x:Type dxm:MeasurementsControl}">
       <Setter Property="AreaOpacity" Value="0.5"/>
       <Setter Property="Fill" Value="OrangeRed"/>
       <Setter Property="Stroke" Value="DarkRed"/>
       <Setter Property="StrokeThickness" Value="2"/>
   </Style>
</Window.Resources>
<Grid>
<!--...-->
   <dxm:MapControl x:Name="mapControl1" >
       <dxm:MapControl.Measurements>
           <dxm:Measurements/>
       </dxm:MapControl.Measurements>
       <!--...-->       
   </dxm:MapControl>
</Grid>

Related API members:

Name

Description

AreaOpacity

Gets or sets the area ruler opacity.

Fill

Gets or sets the Brush object used to fill area rulers.

Stroke

Gets or sets the Brush object used to draw ruler lines.

StrokeThickness

Gets or sets the ruler line thickness.

See Also