Fixed example code for populating a tree view, replacing it with code for a minimal working example.
Changed the example app to fit preferred approach in new programming guides.
Removed inmports and main view bits, to reduce to minimum example.
Merge pull request #963 from geojeff/treeview_docs

Fixed example code for populating a tree view, replacing it with code fo...