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!
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!