On your design page:
Margin=”76,400,0,328″ Width=”300″>
In the C# code:
private void populateSchemaTree()
{
// clear previous contents so they don't pile up
schemaTree.Items.Clear();
TreeViewItem tv = new TreeViewItem();
TreeViewItem tv_sub = new TreeViewItem();
// parent - make a new object for each parent item
tv.Header = "Parent";
// child - make a new object for each child item
tv_sub.Header = "Child";
// add the children to the parent
tv.Items.Add(tv_sub);
// add the parent to the tree object
schemaTree.Items.Add(tv);
}