AcornPublishing_wpf/9780735619579-master/AppsCodeMarkup/Chapter 16/ShowClassHierarchy/ShowClassHierarchy.cs
//---------------------------------------------------
// ShowClassHierarchy.cs (c) 2006 by Charles Petzold
//---------------------------------------------------
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;

namespace Petzold.ShowClassHierarchy
{
    class ShowClassHierarchy : Window
    {
        [STAThread]
        public static void Main()
        {
            Application app = new Application();
            app.Run(new ShowClassHierarchy());
        }
        public ShowClassHierarchy()
        {
            Title = "Show Class Hierarchy";

            // Create ClassHierarchyTreeView.
            ClassHierarchyTreeView treevue =
                new ClassHierarchyTreeView(
                        typeof(System.Windows.Threading.DispatcherObject));

            Content = treevue;
        }
    }
}
