javascript - Create HTML and CSS for WPF WebBrowser -


ok, i'm building application similar battle.net's launcher :) tabs multiple applications , have liked add "dynamic content area" post news , stuff. therefore placed webbrowser there, set width , height , proceeded create static html file.

i aware wpf's measure unit is not pixel. therefore, when creating css html, multiplied webbrowser's dimensions 1.33 , used html's body width , height. , looked on work monitor. when got home, surprise! apparently monitor works @ higher dpi value, therefore image had there larger browser window, text way big, etc. did try switching em unit, still no luck.

so, how can create webpage fit kinds of dpi settings? seeing can't monitor dpi values (not reliably, far have been able read). possible?

the other possibility have considered create placeholder image , text (wpf controls is) , populate them server, may want change layout @ point, etc, therefore doesn't me in long run.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -