开发者

system settings of Icon size selection is thowing off Silverlight app

A tester was having a look at my silverlight app and his results were nothing like I expected. After some discussion I found out that the difference stemmed from his setting his operating system to use huge icons. This changed the look and feel of my applic开发者_Go百科ation.

How, in the C# code of my silverlight, can I query the Operating System to ask if the user has choosen to use huge icons, medium icons, or small icons?

Maybe System.Windows.Icon.SizeProperty ?


It sounds like your tester may have different DPI settings on their machine. The different DPI settings will result in images/icons appearing very unexpectedly scaled.

Try adding the following code when the app starts up:

Application.Current.Host.Settings.EnableAutoZoom = false;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜