Extending WPF Button to store data in a new property

Posted by Jay on Stack Overflow See other posts from Stack Overflow or by Jay
Published on 2009-02-19T15:01:47Z Indexed on 2010/04/06 14:03 UTC
Read the original article Hit count: 535

Filed under:
|

I want to extend a WPF button to store some extra data, in a similar way to the current "Tag" property. Are attached properties the way forward? The data I want to store will be a URL Link string, for example I would like to be able to do something like:

<Button Tag="BBC World News" URLLink="http://www.bbc.co.uk"/>

Can anyone help me to understand how to extend the Button?

Many thanks

Jay

© Stack Overflow or respective owner

Related posts about wpf

Related posts about button