This is a mirror of official site: http://jasper-net.blogspot.com/

What is Visual Tree and Logical Tree in WPF?

| Thursday, August 4, 2011
WPF1_thumb.jpg

Every programming style contains some sort of LogicalTree which comprises the Overall Program. The LogicalTree comprises the elements as they are listed in XAML. Thus they will only include the controls that you have declared in you XAML.

VisualTree on the other hand, comprises the parts that make up the individual controls. You do not generally need to deal with VisualTree directly, but you should know how each control is comprised of, so it would be easier to build custom templates using this.

Read more: Daily .Net Tips
QR: https://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://dailydotnettips.com/2011/08/03/what-is-visual-tree-and-logical-tree-in-wpf/

Posted via email from Jasper-net

0 comments: