Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WPF - Content appears blurry when the system dpi changes on a per monitor dpi aware app #2856

@mathallsl

Description

@mathallsl
  • What version of the product are you using? 73.1.130

  • What architecture x86 or x64? x86

  • On what operating system? Win 10

  • Are you using WinForms, WPF or OffScreen? WPF

  • What steps will reproduce the problem?
    I have modified the minimal example here to use the sample from Microsoft that makes windows per-monitor DPI aware. It works fairly well but I have found a problem:

    • Have two monitors plugged in, at different dpis to each other
    • Open the minimal example and keep it on the primary monitor
    • Unplug the primary monitor
  • What is the expected output? What do you see instead?
    The app should move to the secondary monitor and account for the dpi change. The normal controls (buttons) in the app scale correctly, however the content in the cefsharp control becomes blurry. Screenshots

  • Please provide any additional information below.

    • A stack trace if available, any Exception information.
      None

    • Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory)
      No

    • Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls?
      Just the per monitor dpi sample, as mentioned above. Moving the app between monitors manually when they're both plugged in works as expected - the UI elements scale, as does the web content. It is only when the primary monitor is unplugged does the problem occur

  • Does this problem also occur in the CEF Sample Application from http://opensource.spotify.com/cefbuilds/index.html?
    No

Metadata

Metadata

Assignees

No one assigned

    Labels

    wpfWPF Implementation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions