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
1300
Set custom fore color of node on selection
posted

Hi,

I am trying to set fore colour of a Selected node to Brown in the attached example.

I tried several options like adding style triggers, adding colour animation, modifying visual states etc., in the xaml file but not able to achieve. I am able to set its style through code on node selection change event, but not able to do through xaml.

Can anyone help me in achieving this through xaml style trigger OR Visual states OR any other ways.

Thanks

Prasad

CustomStyling.zip
  • 17475
    Offline posted

    Hello Prasad,

    The Foreground color of the selected nodes could be modified by changing the ColorAnimation for the Selected Visual State in the default NetworkNodeNodeControl style. A sample that illustrates this is attached here.
    Please feel free to let me know if you need further assistance.

    CustomStyling(2).zip