开发者

system settings of Icon size selection is thowing off Silverlight app

开发者 https://www.devze.com 2023-03-18 08:45 出处:网络
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

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

精彩评论

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