Styles, Templates, and Resources


You can define the look and feel of the WPF elements by setting properties such as FontSize and Background with the Button element as shown:

  <Button Name="button1" Width="150" FontSize="12" Background="AliceBlue">   Click Me! </Button> 

Instead of defining the look and feel with every element, you can define styles that are stored with resources. For completely customizing the look for controls, you can use templates and store them into resources.




Professional C# 2005 with .NET 3.0
Professional C# 2005 with .NET 3.0
ISBN: 470124725
EAN: N/A
Year: 2007
Pages: 427

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net