Download the latest dll.
Copy the style, javascript and image directory into your project. In the default configuration they are assumed to be located in the same dir as the webform where you want to add the tree. If you want them somewhere else check config
Import the xtree.dll into your project by adding it as a reference. Before doing this you may want to copy to a suitable location in your project directory.
Add it to a webform using the tag.
<EMINDS:XTREE id="xTree" runat="server" />Fill the tree by setting the root node and then adding more node with the AddChild() function. Below is an example of how you set the root node. Each node also has Url, Target, Icon, IconOpen and Open property that can be set. Checl API for more info.
XTreeNode rootNode = new XTreeNode(); rootNode.Text = "Root node"; xTree.Root = rootNode;If you are the using the option StoreInSession you will NOT need to rebuild the tree at postback, i.e. you can put the code building the tree within a
if (!Page.IsPostBack)statement.
To get the tree to use the correct stylesheet between the <HEAD> tags of you .aspx files add
<link href="style/xtree.css" type="text/css" rel="stylesheet" />Make sure the location of xtree.css matches the href value of the stylesheet tag.