|
Sl.No. |
Requirement |
Response | |
|
1 |
The SfDiagram is showing everything properly, we would like to change the decorator style at the connecting end based on the relationship between the Entities.
|
To make decorator hollow or opaque, set fill with white or black color..
Please refer the highlighted code example as below.
Code example:
Please refer the screenshot to represent the above scenario.
Screenshot:
For more information, please refer the online documentation link as below.
| |
|
2 |
For example, if the Child Entity is related to Parent Entity as One-To-Many --> It should change the Decorator style at the target.
|
We can customize the decorator style with different shapes. We have provided code example to represent this.
Please refer the highlighted code example as below.
Code example:
Please refer the screenshot to represent the above scenario.
Screenshot:
For more information about this, please refer the online documentation link as below.
| |
|
3 |
For example, if the Child Entity is related to Parent Entity as One-To-Many --> It should change the Decorator style at the target node with One-To-Many indication by using (*) symbol beside the arrow.
|
We have annotation support to achieve the requested requirement. We have provided code example and modified sample to represent this.
Please refer the code example as below.
Code example:
Please refer the screenshot to represent the above scenario.
Screenshot:
For more information about this, please refer the online documentation link as below.
Note: If you need to customize the Content style, use DataTemplate to achieve this.
|
|
Sl.No. |
Requirement |
Response | |
|
1 |
In the place the Annotations its showing its"Syncfusion.UI.Xaml.Diagram.AnnotationEditorViewModel" Text in Place of given Content in Annotations. |
We need to initialize the AnnotationBindingStyle to represent this. We forgot to mentioned it on previous update. Sorry for that. Please refer the given code example in RelationshipDiagram.xaml file.
Please refer the code example as below.
Code example:
| |
|
2 |
Nodes is not collapsing. I want the Nodes to be collapsed only when I click the arrow beside Entity Name |
We have confirmed that the reported requirement as a defect. We have created incident for this. Please follow-up with that for further updates regarding this. |
Hi Vipul,Thanks for the update.Please find the response for the requirement.
Sl.No. Requirement Response 1 In the place the Annotations its showing its"Syncfusion.UI.Xaml.Diagram.AnnotationEditorViewModel" Text in Place of given Content in Annotations. We need to initialize the AnnotationBindingStyle to represent this. We forgot to mentioned it on previous update. Sorry for that. Please refer the given code example in RelationshipDiagram.xaml file.Please refer the code example as below.Code example:
<Style TargetType="syncfusion:AnnotationEditor" BasedOn="{StaticResource AnnotationEditorBindingStyle}"></Style> 2 Nodes is not collapsing. I want the Nodes to be collapsed only when I click the arrow beside Entity Name We have confirmed that the reported requirement as a defect. We have created incident for this. Please follow-up with that for further updates regarding this.Regards,Jayanthi S.
|
Sl.No. |
Reported issue |
Response | ||
|
1 |
I applied the styles provided, still the problem exists. I think there is some other styles which needs to be applied. |
Thanks for the update.
| ||
|
2 |
I'm not able to apply custom view template to the annotations and not able to increase the size of annotations. |
We have provided sample and code example to represent the customization of the Annotation ViewTemplate. Now we have applied the DataTemplates for Annotations in RelationshipDiagram.xaml and RelationshipDiagram.xaml.cs of the provided sample.
Please refer the code example and sample link as below:
Code example:
Sample link: http://www.syncfusion.com/downloads/support/forum/135008/ze/SfDiagramApplication1900981945
|
|
sfdiagram.Page.UpdateLayout();
(sfdiagram.LayoutManager.Layout as DirectedTreeLayout).UpdateLayout();
|
|
Image is blurry after export the SfDiagram page |
Currently diagram uses RenderTargetBitmap + VisualBrush to export diagram, we found that visual brush degrades the quality when diagram size grows larger. We are planning to avoid VisualBrush for exporting diagram for our 2018 Vol1 SP1 release.
As a workaround, we have prepared a sample that shifts all the diagram elements to positive co-ordinates and print with higher quality. Please refer to sample link.
|
|
Pdf Export |
We can export diagram to xps and it can be converted to pdf using our pdf library. Please refer to sample link.
|
|
sfdiagram.LayoutManager = new Syncfusion.UI.Xaml.Diagram.Layout.LayoutManager()
{
Layout = new DirectedTreeLayout()
{
Type = Syncfusion.UI.Xaml.Diagram.Layout.LayoutType.Hierarchical,
HorizontalSpacing = 50,
VerticalSpacing = 75,
SpaceBetweenSubTrees = 100,
Margin = new Thickness(2370, 0, 0, 0)
}
};
|