Jan 19, 2012 at 2:46 PM
Edited Jan 19, 2012 at 2:55 PM
I have currently started on using CM in WPF application. I have a scenario where I have a view with a Bing Map on it. This view can be launched from different places. So currently I always publish an event from where I need to launch this view and the ShellViewModel
which subscribes to these events launches this map view. The map view also has a set of user controls which let user edit and sketch a shape on map. These set of controls differ based on where the map view is being launched from. So currently I am passing
a variable to mapviewmodel which determines which tools to show. However now these set of tools are growing and I dont think this is the right way to handle it.
Ideally I would like each set of tools to be its own view which can be activated on a MappingView based on where mapping view is being launched. Or should I create a separate mapping view for each scenario. But in that case where do I place common functionality
that is embedded in mapviewmodel.
I read something about conductor and conductwith but am not sure whats the best way to handle this scenario.
If someone can point me to right direction, it would be very helpful.