[WPF] records a problem caused by Win8 & quot; zoom level & quot; setting. wpfwin8

Source: Internet
Author: User

[WPF] records the problem caused by a Win8 "zoom level" setting. wpfwin8

This is my computer's resolution settings:

The key is to set the zoom level to "Greater", that is, 150%.

The screen resolution obtained by using various methods in WinForm is scaled, but the mouse position in the mouse event is also consistent with that in the coordinate system:


The resolution obtained here is scaled, but the mouse coordinates at this time are completely different from those of the coordinate system:

We can see that the coordinate system of the mouse position is consistent with the actual resolution, that is, 1920*1080, but all other coordinates are in the 1280*720 coordinate system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.