What is the difference between logical and Visual tree?
What is the difference between logical and Visual tree?
Answer
Visual tree is the representation of the object tree that is being filtered and modified. Visual tree also reports the objects that are part of the control in a composite form. Visual tree is used for rendering process that includes control template and analysis of control’s structure. Silverlight comes with VisualTreeHelper API that represents the tree in a generalized way. It shows object parent and child relationship properties. The files that are used are as follows: System.Windows.Controls.ListBox System.Windows.Controls.Border System.Windows.Controls.ScrollViewer System.Windows.Controls.Grid System.Windows.Shapes.Rectangle
Logical trees add content to the elements using different properties that is being provided with other controls and item properties. Logical tree shows the content model and iterate over the child elements and the content models can be made extensive for the use only. It provides a framework for notifications till all the contents models are not loaded. Ex: ListBox and the files that are used are: System.Windows.Controls.ListBox System.Windows.Controls.ListBoxItem System.String
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website