Back to Devexpress

MeasurementsControl.AreaOpacity Property

wpf-devexpress-dot-xpf-dot-map-dot-measurementscontrol.md

latest2.6 KB
Original Source

MeasurementsControl.AreaOpacity Property

Gets or sets the area ruler opacity.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public double AreaOpacity { get; set; }
vb
Public Property AreaOpacity As Double

Property Value

TypeDescription
Double

A value from 0 (transparent) to 1 (opaque).

|

Example

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:

xaml
<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

MeasurementsControl Class

MeasurementsControl Members

DevExpress.Xpf.Map Namespace