Sunday 26 August 2007

Making Buttons

Although the button has been implemented in the Silverlight Sample Controls Toolkit, I don't think is particularly useful until Silverlight supports templating.

You could use the ButtonBase class and implement a new control which inherits ButtonBase, however I feel you are avoiding writing code, and you would be better to understand a button on your own. In a sense it is almost simpler just to implement a button yourself.

Therefore in the next post i will discuss how to make your own button (with code), and why we do things a certain way. This is good knowledge to have even thought its something we will not worry about in the future. The reason we will not worry about it, as we will just use a templated button from the standard set of controls.

Waffle Over, Lets Make A Button.

No comments: