When should I use adorners?
- by Francesco
Hi all!
WPF is great because there are many things to achieve own goals.
By example, for what I understand, adorners can add some controls to a UI element, but I think that the same behavior can be achieved through a custom control that contains the additional element.
So, my question is: when should I prefer adorners to a more complex (but I think, more flexible) custom control?
Please consider that I'm extensively using MVVM pattern and I would like to bind commands to the additional element. Particularly, I'm designing a diagram designer application and I would like to add connection points to my shapes.
Thank you