Hi Kiran,
Thanks for evaluating Syncfusion products.
Currently, ItemSource for DiagramModel can be specified in two ways, either by binding it to a StaticResource or by directly assigning an object to ItemSource in the CodeBehind as shown in the following code snippet.
Code Snippet:
public MainWindow()
{
InitializeComponent();
List CountrySalesList = new List();
CountrySalesList.Add(new CountrySale() { Name = "US" });
CountrySalesList[0].RegionalSales.Add(new RegionSale() { Name = "New York", Revenue = 2353 });
CountrySalesList[0].RegionalSales.Add(new RegionSale() { Name = "Texas", Revenue = 3453 });
CountrySalesList[0].RegionalSales.Add(new RegionSale() { Name = "California", Revenue = 8456 });
this.diagramModel.ItemsSource = CountrySalesList;
}
Please refer the sample form the following link.
Sample Link:
http://files.syncfusion.com/Support/Diagram.WPF/Samples/72991/DataBindingSample.zip This is because DiagramModel class just extends DependencyObject, so ItemsSource cannot be binded to any property. However, we have fixed this issue and this fix will be available in our Volume 4 2010 release, which is tentatively scheduled to be held on the last week of October 2010.
Also this forum is a duplicate of incident #72991, please follow up with this incident.
Please let us know if there are any concerns.
Regards,
Jegan