Learn how to write code for the ChartValues collection which will be the collection you data bind the chart controls to.
- [Instructor] Now that we have both a button…and a chart, let's try and put some data…into that line chart so that line series can be drawn…on the Cartesian chart so we can actually see…that this works.…So there was quite a bit of XML, a lot of XAML,…to just declare that this is what we want,…but now that we have it, we'll go…to the code behind and actually write some code…and make this actually do something.…So we'll go to the ConstantChangesChart…and right-click, View Code.…And you'll see it's pretty empty here.…There is the Button_Click event handler…that I accidentally created earlier,…so let's go back to the XAML.…
Let's find the button.…Here we have the button and it says Click equals…and notice what happens when I move my cursor over it.…ButtonBase.Click.…Well, that's not the case.…Button_Click is the one that…we accidentally created earlier.…So you can just type a name into the string,…and then it'll create the event handler for you…or you can select the existing one.…I'll select the existing one.…So when I double-click, now the click event handler…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.