Can a custom WPF control implement the IsDefault property

Posted by jpierson on Stack Overflow See other posts from Stack Overflow or by jpierson
Published on 2010-04-13T23:26:35Z Indexed on 2010/04/14 2:03 UTC
Read the original article Hit count: 426

I have a custom button control that does not derive from Button. Is it possible for me to implement the equivalent of IsDefault so that the command associated with my control will be invoked. I was hoping that this was an attached property that I could add to any control but as far as I can tell it doesn't seem to be. Am I out of luck if my control does not derive from Button or is there at least a reasonable workaround?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about button