Documente Academic
Documente Profesional
Documente Cultură
Introduction
Elements of a WPF user interface are hierarchically related. This relation is called the LogicalTree. The template of one element consists of multiple visual elements. This tree is called the VisualTree. WPF differs between those two trees, because for some problems you only need the logical elements and for other problems you want all elements. < W i n d o w > < G r i d > < L a b e lC o n t e n t = " L a b e l "/ > < B u t t o nC o n t e n t = " B u t t o n "/ > < / G r i d > < / W i n d o w >
12/19/13
The following example shows how to use the helper. It starts at t h i sand navigates up the visual tree until it finds an element of type G r i d . If the helper reaches the root element of the tree, it returns n u l l .
wpftutorial.net/LogicalAndVisualTree.html 2/3
12/19/13
wpftutorial.net/LogicalAndVisualTree.html
3/3