How to set zoom levelt to 100% RRS feed

  • Question

  • If browser zoom level  less than 100%,  SL application texts are difficult to read on 1024 x 768 resolution.

    How to fix this ? 

    How to set borwser zoom level to 100% or select different fonts according to zoom level from SL application ?



    Friday, June 25, 2010 7:53 AM

All replies

  •  Here is a reference that may help:



    I dont believe your going to be able to manually set the zoom level yourself. You may be able to detect browser zoom event and adjust your properties accordingly. This may vary by browser.

    Friday, June 25, 2010 9:02 AM
  • Thank you. How to use this from SL application:

    1. Dedect zoom level in SL application init and itas change in application lifetime.

    2. Force application to use best font sizes / fonts for this zoom level and screen resolution.


    Friday, June 25, 2010 9:38 AM
  •  Your going to have to hook into the zoom event with javascript, and pass that to your SL application through javascript integration. Here is a reference for that:



    For the fonts your going to have to find the ideal font size at 100%, and experiment with a value that will give you the desired font size at the current magnification level. Say 1 font size is 14pt and another is 8pt at 100%. When you go to 120% magnification you may want to shrink those font sizes by 14 - (14 x 0.2) and 8 - (8 x 0.2).

    Friday, June 25, 2010 10:49 AM
  • This should be common issue. I don't want to re-invent the wheel.

    Where to find code which implements this for silverlight?

    Currently users should click to non-mousewheel enabled control to focus it. After that Ctrl+mousewheel can used to reset

    IE zoom level. There are issues for using this:

    1. wheel is rolled rapidly, SL application disappers from browser. User must re-enter application address to browser URL after that.

    2. Application flashes if mouse wheel is rolled.

    3. Non-mousewheel enabled control should have focus.

    Maybe is possible to set some global zoom factor for SL application to compensate browser zoom level <100%. This zoom factor increases zoom back to 100%. In this case fonts desinged for 100% zoom level should look OK.

    Or is it possible to add something like + ja - buttons which does not have those wheel scrolling issues?




    Friday, June 25, 2010 11:33 AM