AnsweredAssumed Answered

how to get MapView in ViewModel Using MVVM

Question asked by Nadir_Hussain on May 31, 2017
Latest reply on Jul 17, 2017 by Nadir_Hussain

Dear All,

i am using mvvm model class is given below.


<RowDefinition Height="*" />
<RowDefinition Height="auto" />
<Grid Grid.Row="0" RowSpacing="0" ColumnSpacing="0" BackgroundColor="Transparent">
<esriUI:MapView x:Name="MyMapView" Map="{Binding myMap}" BackgroundColor="GreenYellow" />
<Grid Grid.Row="1" RowSpacing="0" ColumnSpacing="0" BackgroundColor="Transparent">
    <Button Text="Direction" BackgroundColor="Black" TextColor="White" Command="{Binding Hello}" />


On my button click i want to ACCESS MyMapView in my model in modelview class.I cant under stand how i get the reference of this MyMapView  on event in modelview.because on click event i want to add some graphics on my map.

please help.Thanks in advance.


please help.


Thanks in advance