简体   繁体   中英

How to change desktop/folders Icons size programmatically C#

I'm developing a WPF that needs to make desktop icons and folder icons bigger while the WPF is active and returns them to their previous state when closing the WPF

basically I want to be able to control the following options programmatically:

Folders icons : 文件夹图标

desktop icons:

桌面图标

also how to change folder option to single click mode : 文件夹选项

Folder icon settings are often per-folder and you will have a hard time forcing your preferences on them. You can probably find some descriptions of the registry locations and format if you search the internet for "shellbags" but this puts you in undocumented territory.

The desktop icon mode can probably be changed by undocumented/hacky means but you should just let the user do it.

You might be able to change the double-click mode by playing with fDoubleClickInWebView and SHGetSetSettings .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM