Hi,
I have sent a sample to support@thinkgeo.com to upload it to ftp, for the following problem i am facing.
We are using the MVVM or the Prism pattern for our application.
In this sample we are receiving updates(Camera updates) from MapUpdates.cs files (using timer) and displaying this updates on Map.
These updates we are first receiving in MapModel.cs and then passing to MapViewModel.cs.
MapViewModel.cs has reference of MainPage.xaml (View) which is hosting the map control.
In MapViewModel.cs, we are doing following operations:
- Adding LayerOverlay to map
- Adding MemoryFeaturelayer to LayerOverlay
- Adding ValueStyle to display camera status
Whenever we receive any update we process it in UpdateReceived() handler, update the feature ColumnValues and then refresh the layer
We want to follow Model-View-ViewModel(MVVM) pattern suggested by PRISM and CAL(Composite Application Library) for this scenario.
So, we do not want to pass view reference(MainPage) to MapViewModel and also avoid code behind for MainPage.Xaml by using binding in xaml file.
Can you please suggest how can we achive this.
Thanks,
Krithika