Can i use ports when binding to a Datasource (MVVM)

I'm looking for a (MVVM) binding implementation that uses ports.
I have a model as follows
Node has Ports collection
Port has connections
Connection has SourcePort and TargetPort

When the user makes changes in the diagram the model should perform the validation.

I've looked at the "OrganizationalChart" example and I wonder if I could extend that with ports.
//Initializes the DataSourceSettings
            diagram.DataSourceSettings = new DataSourceSettings() { DataSource = employees, Id = "EmpId", ParentId = "ParentId" };

I also looked at the MVVM implementation for the WPF sfDiagram, but the syncfusion viewmodels used there seem to be missing in the xamarin version

Regards
Martin

1 Reply

DS Devaraj Sekar Syncfusion Team January 29, 2021 05:55 AM UTC

Hi Martin, 
Thank you for contacting Syncfusion support. 
On analyzing further with the provided information, Xamarin forms SfDiagram provides support to auto-arrange the nodes based on hierarchical relation using the data model. We have support to auto layout using parent child relation and currently, we do not have support to render layouts based on node port collection.  
Kindly provide us detailed information about your requirement such as data model, sample screenshots or required output samples, which will be helpful for us to provide a prompt solution at earliest. 
Regards,
Devaraj S 


Loader.
Up arrow icon