How does WPF property value inheritance physically work?

  • Thread starter Thread starter jkj2000
  • Start date Start date
J

jkj2000

I'm trying to get my head around how WPF property value inheritance
works on dependency objects.

For instance, if I set a FontSize property in a Window, how do any of
the Buttons I've defined in, say, a Grid attached to that window know
to set their own FontSize properties appropriately? (assuming the
buttons don't set their own values explicitly)

I understand how to use property value inheritance. What I'd like to
know more of is the internal plumbing-- for example, when I set a
Window's FontSize property in XAML, does that trigger some kind of
recursive walk through its contained objects, looking for those that
have a FontSize property and setting them? Or is there another
mechanism at work?

Thanks!
 
Thanks for the information.

I wasn't as clear as I could have been-- It's not the CLI / nitty-
gritty details I wanted to learn more about; rather, just the general
mechanism for how the property inheritance takes place.

-jkj
 
Back
Top