I'm struggling to find sufficient information about the property Inheritance Tree (or Inheritence Context) used by DependencyObject
and DependencyProperty
.
I would like to use the value inheritence capability of DependencyProperty
outside of a typical WPF page, such that Object A is the logical parent Object B, and thus a value assigned to a property on Object A will automatically propogate to Object B unless it has been locally set (a bit like the FlowDirection
property works in WPF).
If Object A and Object B are derieved from DependencyObject
, and are not children of a UIElement
(in other words, Object A is it's own root), then how do you establish the logical tree so that DependencyProperty
understands that B is a child of A?
The Hillberg Freezable Trick as well as Josh Smith's bag of tricks aren't quite what I'm looking for. I don't want to retrieve properties from an existing element tree... I want to create my own, non-visual element tree... i.e. have control over the inheritence context.
Anyone know where this body of knowledge is hiding?