I would like to use an object for data binding of the diagram like this:
class MyViewModel
{
public GraphLinksModel<NodeViewModel, String, int, LinkViewModel> Graph
{ get; set; }
}
So, the actual model is just a property of the object being bound to the diagram control's data context. Can I somehow specify in XAML, that the diagram is supposed to look into the Graph property of the binding rather than use the binding directly ?
Ah, okay, that's cool. That makes it easy to use with Caliburn, because my ViewModel can now inherit from a Caliburn class, whereas the Graph inherits from GraphLinksModel.