Welcome Guest Search | Active Topics | Sign In | Register

User Agent Stylesheet Options
Roei Ben-Harush
Posted: Thursday, March 1, 2018 4:11:04 PM
Rank: Member
Groups: Member

Joined: 11/13/2015
Posts: 29
Is there a way to define a User Agent Stylesheet in EO.WebBrowser?

see reference: https://www.w3.org/TR/2011/REC-CSS2-20110607/cascade.html#cascade

What I would like to do is load a user agent css on the init of the WebView and have it apply to every page it navigates.
My end user has some disabilities and I have to override some visual settings in the view.
eo_support
Posted: Thursday, March 1, 2018 8:40:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

You can use this property on the BrowserOptions class:

https://www.essentialobjects.com/doc/eo.webengine.browseroptions.userstylesheet.aspx

See here for more information on how to use this class:

https://www.essentialobjects.com/doc/webbrowser/advanced/browser_options.aspx

Thanks!
Roei Ben-Harush
Posted: Friday, March 2, 2018 12:46:25 PM
Rank: Member
Groups: Member

Joined: 11/13/2015
Posts: 29
Perfect! thank you for the quick reply!
eo_support
Posted: Friday, March 2, 2018 1:38:59 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Great. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.