Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapItem.EnableSelection Property

Indicates whether a map item can be selected.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public bool? EnableSelection { get; set; }

#Property Value

Type Description
Nullable<Boolean>

true if a map item can be selected; otherwise, false.

#Remarks

The MapItem.EnableSelection property has a higher priority than the VectorLayerBase.EnableSelection property specified for the map layer that contains the map item.

The following example disables selection for all items on the VectorLayer except the MapEllipse item:

<dxm:VectorLayer x:Name="vectorLayer" EnableSelection="False">
  <dxm:MapItemStorage>
      <dxm:MapDot  Location="-80, -90" Size="20"/>
      <dxm:MapEllipse Location="-60, -90" Width="2000" Height="1000" EnableSelection="True" />
      <dxm:MapLine Point1="-40, -90" Point2="-50, -70"/>
  </dxm:MapItemStorage>
</dxm:VectorLayer>
See Also