0

I want to create Mapview control in xaml as below but I get an error "The name Mapview does not exist in namespace http://schemas.esri.com/arcgis/client/2009"

<esri:MapView x:Name="MyMapView">
    <esri:Map Background="White" Name="mainDisplay" WrapAround="True" IsLogoVisible="False" 
          UseAcceleratedDisplay="False">
...
...
    </esri:Map>
</esri:MapView>

The only reason to add Mapview is to know where the user has clicked on the map by its MapViewTapped MapViewInputEventArgs.location. Please note that the ESRI.ArcGIS.Client.Toolkit.dll is added in my project - References.

0

You are using ArcGIS Runtime SDK for WPF. Actually, there is no MapView object in it. The MapView object is in ArcGIS Runtime SDK for .NET, you will find MapView.MapViewTapped Event in here. Instead, you can use OnMouseDown or TouchDown event in ArcGIS Runtime SDK for WPF.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.