Using TemplateBinding to Replace a ContentPresenter in a Silverlight Button


I have found that you have much more control over things such as centering text when using a TextBlock instead of a ContentPresenter in a Silverlight custom Button Control.  In this short video (about 5 min) I show you how to repleace a Silverlight Button’s ContentPresenter with a TextBlock and then use Template Binding to have it display the correct button label.

Have fun!

Video URL:

http://tw0.us/4oJ

 

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: