Click here to Skip to main content
15,880,427 members
Articles / Programming Languages / C# 4.0

Silverlight Hierarchy Tree Control

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
19 Oct 2010CPOL4 min read 53.2K   1.1K   32  
A Hierarchy Tree with the ability to display any control as a node
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HierarchyControl
{
    /// <summary>
    /// Dummy control used to demonstrate the HierarchyTree UserControl
    /// </summary>
    public partial class MyUserControl : UserControl
    {
        public MyUserControl(string name, string date)
        {
            InitializeComponent();

            txtName.Text = name;
            this.txtDate.Text = date;

        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
Enjoying life developing mobile device software for Contractors Apps and Ezi App.

I also teach C#, Java and Project Management a couple of evenings a week.

Prior to moving to DCB, I'd been a Windows software developer for nearly 15 years

Comments and Discussions