I am trying to apply style to Sfdiagram node and it does not appear.
BTW, I am using an older version of syncfusion.
This is the style I am usi
<Style x:Key="ShapeStyle" TargetType="Path">
<Setter Property="Fill" Value="Red"/>
<Setter Property="Stretch" Value="Fill"/>
<Setter Property="Stroke" Value="#FFEDF1F6"/>
</Style>
Hi Ragul,
Greetings from Syncfusion.
We do not have Square shape in our resource dictionary shapes collection. Instead of that you can use Rectangle.
Please find below UG documentation link to know some of our available shapes list,
https://help.syncfusion.com/wpf/diagram/shapes
Regards,
Deepa Thiruppathy
It does not work for any shape.
When I target node in general, the style is applied but when I do it in code-behind, style is not applied.
Hi Ragul,
Reported issue: Shape style for node is not applied from code behind
We created a simple sample with nodes and styles were applied through code behind of it. We can be able to apply the style properly. We have verified it from 16.3.0.21 version. We request you try this sample and if the issue persist, please revert us with product version details.
Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/NodeCodeBehindStyle-233001463
This version works.
1) But in version 15.1451.0.33 , styles are not applied from code-behind. Can you provide an answer for that?
2)Also what is the difference between using Syncfusion.Sfdiagram nuget package in Visual Studio and
dll from free community license?
Hi Ragul,
Please find below response table for all your queries,
|
Query |
Response |
|
1) But in version 15.1451.0.33 , styles are not applied from code-behind. Can you provide an answer for that? |
We are able to reproduce the issue in 15.1 version. This issue has been fixed in our latest version. You are using very older version of SfDiagram control. We request you use latest version. We could not provide any patch for this version.
|
|
2)Also what is the difference between using Syncfusion.Sfdiagram nuget package in Visual Studio and dll from free community license?
|
NuGets packages contains Syncfusion trail version DLL of our control so, you need to update the license key after 30 days trail. While using trail DLL of Syncfusion will display trail warning messages in your application, Whereas Community licensed customers can use the Licensed DLL by generating License key using their Community License account. Please refer to the following documentation links
https://www.syncfusion.com/kb/11279/how-to-get-community-license-and-install-it
https://help.syncfusion.com/common/essential-studio/download#download-the-trial-version |