Silverlight 3 style and control template (XAMLSL3StyleControlTemplate)

This XAML sample demonstrates how to work with Style and ControlTemplate in Silverlight 3.

C# (49.1 KB)
 
 
 
 
 
(0)
9,595 times
Add to favorites
5/5/2011
E-mail Twitter del.icio.us Digg Facebook
========================================================================
    SILVERLIGHT APPLICATION : XamlSL3StyleControlTempate Project Overview
========================================================================

/////////////////////////////////////////////////////////////////////////////
Use:

This example demonstrates how to work with Style and ControlTemplate in 
Silverlight using XAML. While it is possible to create styles in code (but 
not possible to create ControlTemplates in code), it is generally 
discouraged. So there's no corresponding Style/ControlTemplate samples 
written in code.

This sample targets solution developers who's focusing on code logic rather
than providing wonderful user experience. We do not intend to provide samples
targeting interactive developers. If you're an interactive developer, you can
find samples and tutorials on our Expression Studio web site:
http://expression.microsoft.com/

This sample includes the following features:

	Work with Styles.
	Work with ControlTemplates.
	Inherite Style.
	How to use Visual State in ControlTemplate.


/////////////////////////////////////////////////////////////////////////////
Prerequisites:

Silverlight 3 Chained Installer
http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en

/////////////////////////////////////////////////////////////////////////////
Project Relation:

XAMLSL3StyleControlTemplate - CSSL3CustomControl

CSSL3CustomControl demonstrates how to create a Custom Control.
XAMLSL3StyleControlTemplate demonstrates how to customize the style
and template of both built-in Controls and Custom Controls.

/////////////////////////////////////////////////////////////////////////////
Code Logic:

For a full description of how to work with Style and ControlTemplate in XAML,
please run the project. The sample itself if an interactive document.    

    
/////////////////////////////////////////////////////////////////////////////
References:

Style and ControlTemplate
http://msdn.microsoft.com/en-us/library/cc189093(VS.95).aspx


/////////////////////////////////////////////////////////////////////////////