John Gossman's observations on Avalon development
Thursday, August 04, 2005 - Posts
-
Here's an example of using the VisualTreeWalker from the last post: public class TreeStatistics { private int visualCount; private int greatestVisualDepth; private int depthTotal; private FrameworkElement root; public TreeStatistics(FrameworkElement root) Read More...
|
-
The Avalon compositional UI model encourages you to create Styles and Templates (VisualTree in the May CTP build) that automatically generate visuals. Build a complex Visual Tree and create a bunch of these automatically with data bound ListBoxes, and Read More...
|
-
Sometimes you just need to walk the tree of Visuals in Avalon. It's easy to do, but it is even easier if you have a nice Visitor-pattern implementing tree walker. So: using System; using System.Collections; using System.Diagnostics; using System.Windows; Read More...
|