MVVM Example


https://www.nevron.com/Forum/Topic9450.aspx
Print Topic | Close Window

By mkniller@dynextechnologies.com - 9 Years Ago
I have been looking at the WPF example provided for the simple 2D chart, however all the work is done in the XAML code behind.  Would anybody be able to provide a very simple example that shows how to bind a chart to data in a view model?
By Nevron Support - 9 Years Ago
Hi,
We don't have such an example - can you elaborate on what you want to accomplish?
By mkniller@dynextechnologies.com - 9 Years Ago
I am sorry for the delay, but I have been having problems logging in post a response...

We have a full MVVM application where we do no coding in the code behind for XAML files.  All of our work for the view is done in the view model class.

Can you provide a simple example where you interact with the chart without using the code behind for the XAML view?

I am including a simple Visual Studio 2013 solution that has a main view with a NChartControl.  What I want to be able to do is configure the chart via it's properties in XAML as well as set up data binding in XAML to my data that lives in the View Model.  Please see MainViewModel.OnExecuteChartLoaded() for some notes.

If you need more please let me know.






By Nevron Support - 9 Years Ago
Hi,

It turns out we don't have an example on MVVM.