Homepage image
Sample of the Day RSS Feed

Sample Download: http://code.msdn.microsoft.com/CSWP7CustomStyleButton-01e7592a

Today’s code sample demonstrates how to create your own style button. You do not need to use any additional tool besides Visual Studio 2010. Custom button images are not required. Use XAML only to create beautiful buttons or even buttons that appear similar to those used in other products such as the iPhone.

To run the sample:                                                  
1. Open the project in Visual Studio 2010.
2. Press Ctrl+F5.

You will see a button like this:
image

When you press the button, it changes to:
image

The sample was written by our star sample writer: Andrew Zhu.

For detailed introduction of the sample, please read the documentation at http://code.msdn.microsoft.com/CSWP7CustomStyleButton-01e7592a 

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.