Following This Sample I am hoping to be able a real MVVM pattern from the tutorial but based on my understanding the application is missing the Model
and View
classes!
I have the MapViewModel.cs
like this
public class MapViewModel
{
public MapViewModel(){ }
private Map _map = new Map(Basemap.CreateStreets());
public Map Map
{
get { return _map; }
set { _map = value; }
}
}
and the MainWindow.xaml
<Window.Resources>
<local:MapViewModel x:Key="MapViewModel" />
</Window.Resources>
<Grid>
<esri:MapView Map="{Binding Map, Source={StaticResource MapViewModel}}" />
</Grid>
but whre are the "MapView
and "MapModel
classes? Can you please help me to extracts and create those classes from the MapViewModel
and create a real MVVM model?