NA
Nikhil A
Syncfusion Team
June 29, 2009 11:07 AM UTC
Hi Kevin,
Thanks for your interest in Syncfusion products.
Yes the shape of the connector in the palette can be changed to whatever you want.
It can be done in the following way:
As the Connector is the second group in the palette, we can access the group using the SymbolGroups[int index] property of SymbolPalette, and then the corresponding item can be accessed in the same way by using the Items[int index] property of SymbolPaletteGroup.
Code Snippet:
BitmapImage bi = new BitmapImage();
bi.BeginInit();
bi.UriSource = new Uri(@"D:\Images\ortho.png", UriKind.RelativeOrAbsolute);
bi.EndInit();
Image i = new Image();
i.Source = bi;
((diagramControl.SymbolPalette.SymbolGroups[1] as SymbolPaletteGroup).Items[0] as SymbolPaletteItem).Content = i;
The above line specifies the content of the first item(index 0)of the second group (index 1, "Connectors") of the SymbolPalette.
In this way the corresponding item of the group can be accessed and the content can be changed.
Please let us know if you have any questions.
Regards,
Nikhil