C# - Silverlight - Custom control or UserControl ?

Posted by cmaduro on Stack Overflow See other posts from Stack Overflow or by cmaduro
Published on 2010-05-21T19:25:05Z Indexed on 2010/05/21 19:40 UTC
Read the original article Hit count: 120

Filed under:
|
|

I need a button that is visually completely customizable, but has custom logic to publish events and manage it's visual state based on events it has registered for.

When I say visually customizable, I mean I should be able to both create the button in xaml and set it's style by binding to the supplied style. Or I can create an instance of the button and set the style by passing a parameter to an alternate constructor. Or by calling a method on the button class to set the style.

I do not plan on substituting the controls template, it should be a button. Can anyone point me to some code samples of this?

© Stack Overflow or respective owner

Related posts about usercontrol

Related posts about Silverlight