MVVM Example


Author
Message
Matt Kniller
Matt Kniller
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 2, Visits: 19
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?
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K
Hi,
We don't have such an example - can you elaborate on what you want to accomplish?


Best Regards,
Nevron Support Team


Matt Kniller
Matt Kniller
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 2, Visits: 19
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.







Attachments
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K
Hi,

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


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search