When should I use adorners?

Posted by Francesco on Stack Overflow See other posts from Stack Overflow or by Francesco
Published on 2010-04-07T19:08:43Z Indexed on 2010/04/07 19:13 UTC
Read the original article Hit count: 214

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about wpf

Related posts about adorner