Skip to main content

Microsoft Silverlight

Using a css parser in Silverlight.RSS Feed

(0)

Krasshirsch
Krasshirsch

Participant

Participant

1042 points

300 Posts

Using a css parser in Silverlight.

I'm currently developing a css parser for an offline app.
Since this app is built using .NET 3.5 I thought, what the heck, lets do this one as a SL project.
It could be the first step towards a html renderer for SL, which would be quite handy I suppose.

Apart from all css @rules, like @media, @charset the @import rule is the most troublesome one, since it requires a recursive precompilation step to find and include all external dependencies. The problem here is, all relative paths like url(../bla.css) will fail since Silverlight has a different root than the page I want to display, furthermore used just as a plain html renderer for viewing mails or newsletters there will never be an @import rule, what to do ?

For the offline app it will be straightforward since I will keep to the css 2.1 guide lines, but to make it work in SL I need a little more insights, any ideas ?

A Bro must always post bail for another Bro, unless it's out of state or, like, crazy expensive.

Crazy Expensive Bail > (Years You've been Bros) * $100

Alexander Wieser
Germany
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities