I have my first MVVM Light application, and I was very good and did not put anything in the code. For performance reasons, the chart control that I use requires a call to turn it off, and then turn it back on after updating a series of charts. Therefore, I need to call the control method from ViewModel.
Now I can do all this through the “bigger hammer” approach, passing the link to the chart control in the ViewModel using the MainStatic method of the locator. I believe that this is really not how it should be done, and I'm trying to do everything in the “MVVM path”. Can any MVVM Light guru show me the way? All I found are people who send commands from code to ViewModel ... I need to go the other way ... or at least I think I ...; -)
source
share