CHAPTER 9

image

2D Chart Controls

In the previous chapters, we implemented the source code for all of the classes in our graphics and chart programs directly. For simple applications, this approach works well. However, if you want to reuse the same code in multiple WPF applications, this method becomes ineffective. The .NET Framework and WPF provide a powerful means, the user control, that solves this problem.

Custom user controls in WPF are just like the simple buttons or text boxes already provided in .NET and WPF. Typically, the controls you design are to be used in multiple windows or to modularize your code. These custom controls can reduce ...

Get Practical WPF Charts and Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.