Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
How to apply NodeStyle from code behind
posted

¿It's possible to assign nodeStyle defined in resourceDictionary from code behind?

In xaml I do something like this

 <ig:OrgChartNodeLayout Key="Hijos"
                                        TargetTypeName="Nodo"
                                       DisplayMemberPath="_numero"
                                       ToolTipPath="_duenio"                                       
                                       NodeStyle="{StaticResource NodeStyle}"
                                       >                   
                </ig:OrgChartNodeLayout>

NodeSyle is the style I defined in ResourceDictionary

I want do it from code because the format is conditional