Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

WPF TreeView Control

Viewed:  2353 
Posted On:  02/10/2013 01:24:50 
How to use WPF TreeView Control..? 

In this article I am going to explain TreeView control in WPF.

My XAML is:

<Window x:Class="WpfApplication1.Window1"
    Title="WPF: Tree View" Height="300" Width="300">
        <Grid Background="AliceBlue">
            <TreeView Height="200" Background="WhiteSmoke"
                <TreeViewItem Header="India">
                    <TreeViewItem Header="New Delhi" />
                    <TreeViewItem Header="Mumbai" />
                    <TreeViewItem Header="Banglore" />
                <TreeViewItem Header="USA" >
                    <TreeViewItem Header="New York" />
                    <TreeViewItem Header="Phoenix" />
                <TreeViewItem Header="Australia" >
                    <TreeViewItem Header="Sydeny" />

TreeView control in WPF 1.png 

Image 1.

TreeView control in WPF 2.png

Image 2.

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us