Prev | Current Page 281 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"


Most of these features are configured through simple Boolean flags. (The default value for
each Boolean flag is False.) A few are callbacks that point to custom methods that you create
to perform a specific task. Table 6-1 lists the available properties.
CHAPTER 6 n DEPENDENCY PROPERTIES AND ROUTED EVENTS 143
Table 6-1. Properties of the FrameworkPropertyMetadata Class
Name Description
AffectsArrange, AffectsMeasure, If True, the dependency property may affect how adjacent
AffectsParentArrange, and elements (or the parent element) are placed during the
AffectsParentMeasure measure pass and the arrange pass of a layout operation.
For example, the Margin dependency property sets
AffectsMeasure to True, signaling that if the margin of an
element changes, the layout container needs to repeat the
measure step to determine the new placement of elements.
AffectsRender If True, the dependency property may affect something
about the way an element is drawn, requiring that the
element be repainted.
BindsTwoWayByDefault If True, this dependency property will use two-way data
binding instead of one-way data binding by default.
However, you can specify the binding behavior you want
explicitly when you create the binding.
Inherits If True, the dependency property value propagates through
the element tree and can be inherited by nested elements.


Pages:
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293