1. There is a sample, but we haven't ported it to WPF yet. Anyway, you could check the Samples\C#\Entities project from our Windows Forms diagramming control:
https://www.mindfusion.eu/FCNetDemo.zipThe methods and properties used to create the nodes there should be the same in the WPF version.
2. UIElements should be fine. When you add an UIElement to the Diagram, it gets a DiagramNodeAdapter created automatically for it. You can access the adapter by means of the DiagramItem attached property, e.g. when you need to set DiagramNode attributes such as AnchorPattern. Accessing the attached node from C# looks like this:
DiagramNodeAdapter node = Diagram.GetDiagramItem(uiElement) as DiagramNodeAdapter;
3. I suppose you could modify the node's AnchorPattern dynamically to move the anchor point to their matching positions inside the TreeView.
4. At this time the built-in anchors have fixed size, You could set AchorPoint's Style to MarkStyle.Custom and handle the DrawMark event to draw larger ones.
5. TableNodes are UIElements and do not support templating, which is available for Control-derived classes.
Note that if you prefer Xaml over custom drawing, you could combine them by keeping Xaml-defined element off-screen, and drawing them using the DrawingContext methods and VisualBrushes that wrap the Xaml elements.
I hope that helps,
Stoyan