Why do we need to have these perspective of visual and logical tree in wpf?



Why do we need to have these perspective of visual and logical tree in wpf?..

Answer / Ankit Agrawal

The Visual Tree and Logical Tree in WPF provide a way to represent the structure of a UI in two different ways. The Visual Tree represents the hierarchy of visual elements, including their properties like rendering, layout, and hit testing. The Logical Tree, on the other hand, represents the hierarchical relationship between elements from an accessibility and navigation perspective. This separation helps with various aspects such as styling, data binding, and navigating through controls.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WPF Interview Questions

What is wpf textblock?

1 Answers  


Is MDI supported in WPF?

1 Answers  


What is the difference between key binding and mouse binding?

1 Answers  


How many types of documents are supported by wpf?

1 Answers  


What is the inotifypropertychanged interface?

1 Answers  


How to retrieve data from database in wpf?

1 Answers  


What are the method in DependencyObject in WPF?

1 Answers  


In wpf, what do you understand by rotate transform?

1 Answers  


What are important features of wpf?

1 Answers  


Write about prism?

1 Answers  


What are the different types of brushes that wpf offers?

1 Answers  


What is wpf xaml?

1 Answers  


Categories