miroiu / nodify

Highly performant and modular controls for node-based editors designed for data-binding and MVVM.
https://miroiu.github.io/nodify
MIT License
1.3k stars 208 forks source link

[Question]How to change the border color of Node #69

Closed MakesYT closed 1 year ago

MakesYT commented 1 year ago

image image How can I change the border color when it is selected and when it is not selected? I tried to change the resource dictionary but it did not work

miroiu commented 1 year ago

Hi, try setting the SelectedBrush of the ItemContainer

MakesYT commented 1 year ago

Hi, try setting the SelectedBrush of the ItemContainer

tks I can now only set the same border color for all the nodes But I want to use the viewModel properties to set a different border color for each Node. Is that possible?

MakesYT commented 1 year ago

image i try this,but there is no color in the selection. Converter works properly

miroiu commented 1 year ago

It's definitely possible. One option is to use a DataTrigger.

MakesYT commented 1 year ago

is working ,tks a lot