Bind a TreeView to a data source and use DataTemplate objects to customize the TreeView.