Back to Devexpress

MapItem.EnableSelection Property

wpf-devexpress-dot-xpf-dot-map-dot-mapitem-64527031.md

latest1.7 KB
Original Source

MapItem.EnableSelection Property

Indicates whether a map item can be selected.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public bool? EnableSelection { get; set; }
vb
Public Property EnableSelection As Boolean?

Property Value

TypeDescription
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:

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

MapItem Class

MapItem Members

DevExpress.Xpf.Map Namespace