2

In Windows 10, there is a setting in Settings -> Ease of Access -> Display -> Make text bigger

Make text bigger setting on Windows 10

Is there any event which we can subscribe to when this setting is changed?

In UWP, there is an event TextScaleFactorChanged https://learn.microsoft.com/en-us/windows/uwp/design/input/text-scaling . Looking for something similar to this for WPF

Update [1/10]: I'm using framework 4.6.2

ajay_whiz
  • 17,573
  • 4
  • 36
  • 44
  • does `dpi.DpiX` not let you find this? https://stackoverflow.com/questions/9373260/detect-windows-font-size-100-125-and-150 – GrahamTheDev Jan 07 '20 at 18:46
  • @GrahamRitchie This is useful when app starts or a window is open. I want to know when a window is already open and the setting changed. – ajay_whiz Jan 07 '20 at 19:01
  • Why cant you use your Main Window GotFocus event and check for screen DPI changes there? When user changes text size in Windows settings your app will have to lose focus so when got focus is fired and you detect the DPI change your app can react accordingly... – Dean Kuga Jan 10 '20 at 17:23
  • @DeanKuga no luck with that. DPI values don't change – ajay_whiz Jan 14 '20 at 21:22

0 Answers0