Datasheet
576
content controls – DirectX
FlowDocumentPageViewer, 18,
19, 430
FlowDocumentReader, 81–82,
313–315, 430
FlowDocumentScrollViewer, 82, 431
graphical, 75–76
GroupBox, 91–92, 431
Image. See Image control
Label. See Label(s)
ListView, 92–94, 433–434
MediaElement, 77–79, 434, 487–491
overview, 75
Popup, 83–86, 434–435
ProgressBar, 94–97, 435–436,
541–542
properties, methods and events, 74
Separator, 97–98, 436
spatial. See spatial controls
TextBlock. See TextBlock control
textual. See textual controls
ToolTip, 70, 89, 439–440
TreeView. See TreeView control
ContentMenuResource program,
198–199
ContentPresenter
in EllipseButton controls, 277
for templates, 264–265
ContentProvider, 264–265
ContentResource program, 197–198
contested inheritance, 16, 370
ContextMenu
building and functions of, 124–125
overview, 156
property, function of, 70
resource controls and, 198–199
user interaction control, 464–465
control templates
Button. See Button
CheckBox, 121–122, 462–463, 540
defined, 16, 539
Label. See Label(s)
LabeledProgressBar, 543
ModifiedScrollBar, 545–547
OrientedProgressBar, 542
ProgressBar, 541–542
RadioButton, 133–134, 474–475, 541
ScrollBar, 140–141, 482, 543–545
Control Toolbox, 57–58
control(s)
2D drawing. See 2D drawing controls
categories, 73
child. See child controls
container. See container control
content. See content controls
double-clicking, 185
dropdown, 56
EllipseButton, 277
Grid. See Grid control
item, 325
layout. See layout controls
MediaElement, 77–79, 434, 487–491
modifying appearance, 15–16
modifying structure/behavior, 16
necessary names for, 30–31, 70
new, in WPF, 17–18
property inheritance in, 15
resource, 197–199
skinning, 298
templates. See control templates
user interaction. See user interaction
controls
visual brush, 50–51
in Window Designer, 23–25
ControlStyle program, 220
copying
approaches to, 347–348
with TextBox, 433
CornerRadius property, 90
[Ctrl]+Y, for redoing, 137
[Ctrl]+Z, for undoing, 137
culling, in 3D drawing, 391
custom Commands, 355–358
D
data
hierarchical, 329–332
loading, 339–341
master-detail, 332–333
Data attribute, 148–149
data binding
basics, 317–318
binding components, 519
to classes in code-behind, 520–521
to classes in XAML code, 521
collections. See collections, data
binding
database objects. See database
objects, binding
to elements by name, 519
ListView and, 92–94
making data collections, 521–523
master-detail data, 332–333
overview, 317
to provide animation, 14
to RelativeSource, 520
source, 319–323
target and target property, 318–319
using ListBox/ComboBox
templates, 523
using TreeView templates, 523–524
XAML, 333–335
XML, 335–338
data templates, 16
data types
animation classes with, 247
Char, 254
simple, storing in resources, 199–201
database objects, binding
displaying Student details, 343–344
loading data, 339–341
overview, 338–339
saving changes, 341–342
Scores ListBox, 344
student name ListBox, 342–343
summary, 345
DataContext property, 322–323
DateTimePicker control, 115–117
DecelerationRatio property, 245
declarative programming, in WPF, 18
default Button, 270–271
default event handlers, 32–33
default Style
in GlassButton program, 272–273
property values and, 224
Delay property, 134–135
dependency properties
binding, to provide animation, 14
data binding, 319
dictionaries
merged resource, 204–207
resource, 194, 200–201
DiffuseMaterial, 399–400
Direct3D, 387
DirectionalLight, 396–398
DirectX
defined, 10
Direct3D in, 387
multimedia support with, 11–12
content controls (continued)