Change SystemParameters

Just a quick question: what is the SystemParameters class? Is this just a collection of "defaults" or is it really connected to windows?

Reference Information. For Drag & Drop operations, we use the SystemParameters.MinimumHorizontalDragDistance and SystemParameters.MinimumVerticalDragDistance properties to detect D & D. For touchscreens, the default values ​​are small, and I wonder if I need to implement some kind of configuration mechanism to change these values ​​or if I somewhere I can change some system settings (say, the registry or control panel or something else).

Thank!

Update: with a detailed answer below, I finally found what I am looking for. Just for reference, if anyone else is looking for it in the future: the minimum drag and drop distance can be changed in the registry

HKEY_CURRENT_USER\Control Panel\Desktop\DragHeight
HKEY_CURRENT_USER\Control Panel\Desktop\DragWidth

By default, both values ​​have a value of 4 (px). Keep in mind that changes only take effect after a reboot.

+5
source share
1 answer

It reflects the current user settings, as indicated in various places throughout Windows. Some settings are easily changed by the user on the control panel, while others are located in more obscure places, such as registry values.

Ultimately, this is a managed wrapper around a function GetSystemMetricsfrom the Windows API.

, , . , SystemParameters.MinimumHorizontalDragDistance , . , "", , .

, SM_CXDRAG GetSystemMetrics. , , , :

, . . , .

, " Windows". , , . , ; , .

+6

All Articles