S.No |
Query |
Response | |
1 |
I am using <Style TargetType="syncfusion:Node" BasedOn="{StaticResource NodeBindingStyle}"> to set common properties of the nodes that are being generated (from datasource) or dropped (from stencil) onto the sfDiagram, I am able to set properties like BorderBrush, Content, ContentTemplate etc, but when I set Constraints (I assume they are NodeConstraints) that need to be applicable for all the nodes, it is reverted back to Default. Am I missing something? or they need to be explicitly set from code behind or my viewmodel?
|
We can set Shape and ShapeStyle properties in XAML as common for Node. If we want to set other public properties (of Node) as common, then please create a custom NodeViewModel and set those properties in the Custom NodeViewModel Constructor .
We have provided code example to set Menu and Constraints properties as common to all nodes. Please refer the code example as below.
Code Example:
| |
Also similar to above I would like to know if there is a property that I can access in XAML to set ContextMenu for the nodes so that they are applied to all the nodes.
| |||
2 |
I would like to know if there is a property that I can access in XAML to set SelectorViewModel.SelectorConstraints |
Please refer to the below code example to set SelectorViewModel.SelectorConstraints in XAML.
Code Example:
|