I show how to render a simple TreeView that represents the hierarchy of sites in
the currently Site Collection in my SharePoint developer class. However, it
isn't really any different than using the TreeView in any other setting (e.g.
User Control, Server Control, ASP.NET page). There are tons of examples of how
to render the TreeView class:
http://tinyurl.com/3dh2u8