: Jack Xu
: Practical WPF Charts and Graphics
: Apress
: 9781430224822
: 1
: CHF 89.00
:
: Allgemeines, Lexika
: English
: 712
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF

Creat ng 2D and 3D charts is one of the most common uses of computer graphics. Such charts can have wide applications in representing mathematical, physical, and economic functions in your daily life. Whether you are an engineer, a quantitative analyst, a teacher, or a student, you will end up dealing with charting applications to some degree.

Windows Presentation Foundation (WPF) is a next-generation graphics platform that enables you to build advanced user interfaces incorporating documents, media, 2D and 3D graphics, and animations. It is an ideal development tool that allows you to not only generate data, but also easily represent data graphically.

Practi al WPF Charts and Graphics provides all the tools you will need to develop professional chart and graphics applications in WPF and C#. This book will be useful for WPF and C# programmers of all skill levels, providing a complete and comprehensive explanation of WPF's graphics capability and the creation of various charts, and paying special attention to the details of code implementation.



A bio is not currently available for this author.
Title Page1
Copyright Page2
Contents at a Glance4
Table of Contents5
About the Author16
Acknowledgments17
Introduction18
Overview18
What This Book Includes20
Is This Book for You?20
What Do You Need to Use This Book?21
How the Book Is Organized21
Using Code Examples23
Customer Support23
CHAPTER 1 Overview of WPF Programming24
New features in WPF24
XAML Basics25
Why Is XAML Needed?25
Creating XAML Files25
Code-Behind Files26
Your First WPF Program27
Properties in XAML28
Event Handlers in Code-Behind Files28
Code-Only Example30
XAML-Only Example32
CHAPTER 2 2D Transformations34
Basics of Matrices and Transformations34
Vectors and Points34
Scaling35
Reflection36
Rotation36
Translation37
Homogeneous Coordinates38
Translation in Homogeneous Coordinates38
Scaling in Homogeneous Coordinates39
Rotation in Homogeneous Coordinates40
Combining Transforms41
Vectors and Matrices in WPF42
Vector Structure42
Matrix Structure44
Matrix Operations45
Matrix Transforms48
Creating Perpendicular Lines54
Object Transformations in WPF59
MatrixTransform Class61
ScaleTransform Class65
TranslateTransform Class68
RotateTransform Class71
SkewTransform Class75
Composite Transforms78
CHAPTER 3 WPF Graphics Basics in 2D81
2D Coordinate Systems in WPF81
Default Coordinates81
Custom Coordinates84
Custom Coordinates for 2D Charts89
2D Viewport94
Zooming and Panning95
Resizable Canvas98
Basic 2D Graphics Shapes in WPF102
Lines102
Rectangles and Ellipses104
Polylines108
Polygons110
Paths and Geometries113
Line, Rectangle, and Ellipse Geometries114
GeometryGroup Class115
CombinedGeometry Class117
PathGeometry Class120
Lines and Polylines121
Arcs121
Bezier Curves122
Geometry and Mini-Language124
Hit Testing127
Custom Shapes130
Star Class130
ArrowLine Class134
Testing Custom Shapes139
CHAPTER 4 Colors and Brushes144
Colors144
System Colors145
Color Picker148
Brushes155
SolidColorBrush155
LinearGradientBrush158
RadialGradientBrush162
DrawingBrush165
Custom Colormap and Shading168
Custom Colormap Brushes168
Testing Colormap Brushes174
Color Shading176
Testing Color Shading180
CHAPTER 5 2D Line charts183
Simple Line Charts183
Creating Simple Line Charts183
How It Works186
Line Charts with Data Collection186
Chart Style186
Data Series188
Data Collection190
Creating Line Charts191
Gridlines and Labels194
Chart Style with Gridlines194
Creating a Chart with Gridlines199
Legends203
Legend Class203
Creating a Chart with a Legend208
Symbols212
Defining Symbols212
Symbols Class213
Creating a Chart with Symbols220
Line Charts with Two Y Axes223
Why We Need Two Y Axes223
Chart Style with Two Y Axes225
DataSeries and DataCollection with Two Y Axes231
Creating a Chart with Two Y Axes233
CHAPTER 6 Specialized 2D Cha