Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:22:18+00:00 2026-06-08T18:22:18+00:00

How can I change the zoom level of a WinRT Webview ? If I

  • 0

How can I change the zoom level of a WinRT Webview?

If I give it focus, I can zoom in/out using the keyboard CTRL+ + and CTRL+ -
But can this be accomplished from code?

Note: Putting the WebView inside a ScrollViewer, and let that zoom, is not what I’m looking for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:22:19+00:00Added an answer on June 8, 2026 at 6:22 pm

    Unfortunately I don’t think there’s a way to do it directly in managed code. There is, however, a workaround if you own the content or can inject some css / script.

    In your HTML, add this css:

    <style type="text/css">
    body
    {
    zoom:100%;
    }
    </style>
    

    In your HTML also include a script block like this:

    function setZoomLevel(newZoom) {
        document.styleSheets[0]['rules'][0].style['zoom'] = newZoom;
    }
    

    In your C# code, add a helper method:

    private void SetZoomLevel(int level)
    {
        string slevel = string.Format("{0}%", level);
        webBrowser.InvokeScript("setZoomLevel", slevel);
    }
    

    In your C# code you can now adjust the zoom level by calling:

    SetZoomLevel(200);
    

    That’s the best I could find and unfortunately it doesn’t work if you can’t inject a style and some script.

    NOTE: Although this does zoom content in pretty much the same way as adjusting the zoom slider, the zoom slider is not affected in the desktop browser. Therefore if you call SetZoomLevel(200); above and then set the slider to 200% you would actually see 400%. This should not be an issue in WebView because there is no slider.

    Hope someone comes up with a better answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How i can change the color with gradient??? I have this now,but is different
I understand that I can change a sql table using the follow sp: EXEC
I'm using google map fitBounds, then I use map.setZoom to zoom-in one level (after
Can I change the size of the zoom button on achartengine? I know I
In most of websites, while I change the zoom level of browsers, the font
This might be little bit novice but, how can i set initial displayed area
Is it possible to change the zoom level for myLocation with the new Google
I can change SQL at runtime. Can I do the same with LINQ ?
I can change the irb prompt mode with irb --prompt prompt-mode I can see
Where I can change compiler options for C# project in VisualStudio 2008 (without command

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.