elmar
elmar

Reputation: 103

Edit CSS in WPF Webbrowser control

I want to build a lightweight (wysiwyg) css editor based on the WPF webbrowser control, so I need to be able to manipulate the css. I figure you can get the HtmlDOM from the Webbrowser.Document property, however i'm having some difficulty figuring out how to obtain and edit the document's css.

Upvotes: 0

Views: 1493

Answers (2)

ChrisW
ChrisW

Reputation: 56113

You might find my CSS parser component for .NET useful.

Upvotes: 0

Sheng Jiang 蒋晟
Sheng Jiang 蒋晟

Reputation: 15271

Enumerate each element and gets the style sheet property, then use IHTMLStyleSheet::cssText to get or set the css.

Upvotes: 1

Related Questions