Recently, i decided to download the WPF Toolkit only to see its new controls. These new controls are:
In this first part, we are going to see an example using charts, especially pie series.
After downloading the toolkit from the previous link, run the .msi file in order to install it and create a new WPF application project with visual studio.
Check the toolbox tab for the new controls:
Add a Chart control to the window:
Now, add PieSeries with XAML like this:
Now, it’s time to create the statistics objects. Begin by creating the following class:
Then implement the Window_Loaded event and fill it with the following code:
Finally, change chart’s properties in order to “welcome” their new data:
Build and run the project to see the results:
Didn't work in VS2015
Powered by Zimbra