Tales from the Smart Client

John Gossman's observations on Avalon development

August, 2005

  • Tales from the Smart Client

    Counting all the Visuals in an Avalon tree

    • 1 Comments
    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...
  • Tales from the Smart Client

    Walking the Visual Tree in Avalon

    • 1 Comments
    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...
  • Tales from the Smart Client

    Avalon Performance: What is your Visual count?

    • 1 Comments
    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...
  • Tales from the Smart Client

    New blogger

    • 0 Comments
    My colleague and friend ChuckJ has started blogging. Chuck has been key in defining the latest XAML spec and is on to new and exciting stuff to be revealed soon: http://www.removingalldoubt.com/ In a former life you may know Chuck as architect of Borland...
Page 1 of 1 (4 items)