Hello!
I find samples, whang collection binds to DataSource and build Tree.
But i want to display objects in swinlanes, so i need to store and bind X, Y and so on.
Also a need to store swimlane.
I tried solve this with DataTemplate for Node + NodeCollection, but there is not DataContext on DataTemplate.
So i need solution to draw custom Node for Smilane and bind to custom props...
Hello, thank you for reply!
I want to use business object, not NodeViewModel. And save, load diagramm content via serialization of my business class. For example - on the left side i have treeview, on the right side diagram with SWMLANES. And when i change my business object (FE name, color) it is changing in diagramm and vise versa.
And when i load my business class diagram restored by its content....
Thank you for your reply!
It's very hard to handle this, but possible.
I need to dysplay custom noe, but i see, that this display nothing ((( DataContext is null...
<!--Style for Node-->
<Style TargetType="syncfusion:Node">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding}"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
Thanks!
Exactly, that i need.
NodeVM node = new NodeVM()
{
OffsetX = 200,
OffsetY = 200,
UnitHeight = 100,
UnitWidth = 100,
//Content = this,
};
node.Content = node;