当 Windows 设置为较大字体大小时,在 WPF 应用程序中加载图标时出现问题
我在编写的 WPF 应用程序中遇到了一个特殊问题。它有一个窗口,可以在一些用户输入后加载单个用户控件,这对几乎所有用户来说都可以正常工作。两名用户报告该应用程序在启动时崩溃,这促使我进行调查。
我发现的罪魁祸首是他们在 Windows 中将“显示属性”下的整体字体大小设置为“超大”。当我将其切换回“正常”时,他们可以正常加载应用程序。
由于我无法在此处发布图像,所以如果有人想知道的话,这里有一个图像链接,显示在哪里设置字体大小: http://content.screencast.com/users/CarloToribio/folders/Jing/media/f6791854-d6ad-4aae-a3f8-42e4140ad1aa/2010-07-26_1235.png
这些用户是老了,视力不好,所以他们确实需要“超大”字体大小才能与 Windows 配合使用,所以我需要解决这个问题不知何故。正在加载的图标是 .ico,有多种尺寸,从 16x16 到 256x256。
有谁知道什么会影响这个?
I'm having a peculiar problem in a WPF-app I've written. It has a single window that loads a single user control after some user input which works perfectly fine for almost all users. Two users reported that the app crashed on launch which sent me investigating.
The culprit I found was that they had set the overall font size in Windows to "Extra large" under Display Properties. When I switched it back to "Normal" they could load the app just fine.
Since I can't post images here is a link to the image that shows where to set the font size if anyone wonders: http://content.screencast.com/users/CarloToribio/folders/Jing/media/f6791854-d6ad-4aae-a3f8-42e4140ad1aa/2010-07-26_1235.png
These users are old and have bad sight so they really need the "Extra large" font size to work with Windows so I need to solve this somehow. The icon that is being loaded is a .ico with several sizes from 16x16 up to 256x256.
Does anyone know what could affect this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该问题似乎与 Windows XP 上图标的最大尺寸 (256x256) 有关。我只是重新保存了没有 256x256 图像的图标,问题就消失了。
The problem seems to be related to the largest size of the icon (256x256) on Windows XP. I simply resaved my icon without the 256x256 image and the problem disappeared.