One of your primary motivations seems to be to introduce selectors to the WPF styling system. But can't the effect of selectors be achieved by taking advantage of implicit styling and adding Styles to the relevant ResourceDictionaries at different levels of the control hierarchy? (In other words, to style Buttons within a particular Grid a special way, put the Style for those Buttons in the Resources of THAT Grid.) I agree that doing so may split up the styling information across the entire XAML, but that's secondary to my question about whether the basic selector-like functionality is present in WPF or not.
CSS support for SL was probably the top 5 questions I used to get in the early SL days .. so I agree you are onto something..
I was surprised at the approach; I always envisioned this being a CSS parser that created Styles to be used in SL ... I never expected people to want css syntax inside SL or WPF.. That said, any thing you accomplish in this space is I am sure helpful to the SL community..
I actually have been thinking about (and fighting hard) the urge for a HTML to XAML converter.. One of the things that discourages me from trying it is that I have no way to parse and properly apply CSS ... If you solve that, then my biggest hurdle is over and the XSLTing should be easier..
Cheers,
-----Original Message-----
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com] On Behalf Of Colin Eberhardt
Sent: Wednesday, March 11, 2009 10:20 AM
To: WPF Disciples
Subject: [WPF Disciples] Styling WPF with CSS
--
Tamir http://khason.net/
I could see it as useful if it works with Silverlight as the Flex/Flash guys are used to CSS-style styling.
Thanks,
Shawn Wildermuth
Microsoft MVP (C#), MCSD.NET, Author and Speaker
The Silverlight Tour is coming to a city near you!