Discussion:
New CSS-like XAML Syntax for Styling Introduced In Windows Vista - Comments?
geraldbauer2005
2005-08-12 20:45:14 UTC
Permalink
Hello,

With the latest Windows Vista/WinFX release Microsoft has updated
its XAML styling syntax to use a CSS-like notation.

In the "A Hitchhiker's Guide to the Windows Presentation Foundation
Beta 1 Release" Tim Sneath writes:

The styling model in Avalon has been refactored in this release.
Styles no longer contain instances of the controls inside them, but
instead include property setters and getters. The new format is
slightly more verbose but offers somewhat greater flexibility.

The following sample shows the new syntax for setting a style:

<Page.Resources>
<Style TargetType="{x:Type Paragraph}">
<Setter Property="FontFamily" Value="Palatino Linotype" />
<Setter Property="FontSize" Value="16pt" />
<Setter Property="Margin" Value=".25in" />
</Style>
</Page.Resources>

Source:
http://msdn.microsoft.com/library/en-us/dnlong/html/hgtobeta1.asp

Any thoughts? Any comments?

- Gerald





------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hjhksb6/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123886738/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->

_________________________________________
United XAML | http://unitedxaml.org
XAML Forum & News | http://xamlnews.com

Loading...