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.27k stars 205 forks source link

I want to hide Pending Connection content until it's hover to invalid connection, How can I? #76

Closed ankitsatapara07 closed 9 months ago

ankitsatapara07 commented 10 months ago

Hi @miroiu

I am not sure weather it is possible or not, but I wanted to hide content of pending connection until it's hover to invalid connection. What I want is, I don't want to display the pending connection content "Drop on connector",

Screenshot 2023-10-13 202309

If it's hover to invalid connector it should display the content as shown below.

Screenshot 2023-10-13 202348

Any thoughts how to achieve this?

Thanks Again Have a wonderfull day

miroiu commented 10 months ago

Hi, did you try to change the visibility of the content with a DaraTrigger?

ankitsatapara07 commented 10 months ago

I tried but not working, I am not sure, I am new to WPF and MVVM so I might be doing wrong, Please suggest some boilerplate code if this is wrong. Thanks for your patience.

image

If I remove the style for content (It's giving build error so I have to remove), After removing it's somewhat working as expected, but still I am seeing a empty square box which looks somewhat weird.

image
ankitsatapara07 commented 10 months ago

@miroiu Did you get a chance to look into it?

miroiu commented 9 months ago

@ankitsatapara07 I updated the playground app with an example on how to do it

miroiu commented 9 months ago

I hope that helps.

ankitsatapara07 commented 9 months ago

@miroiu I just see the fix and the updated playground example. Thank you so much for helping me. Thanks again 👍