As far as I understand, a logical tree is always a subset of the visual tree of some element in WPF. Technically, the distinction between the two is whether or not they are assigned to the Template
property of an element (= visual) or to the Content
, Children
or Child
properties thereof (= logical).
What I wonder is this: Within the visual tree that I assign to a Template
property, I can recusively have logical and visual trees again, since I can simply assign the Template
respectively Content
of a visual tree’s descendants again.
Is this true, and if so, how are the properties (like dependency property inheritance) of inner visual/logical trees different from those of the outermost?