template based on http://www.codeproject.com/Articles/182683/NetworkView-A-WPF-custom-control-for-visualizing-a