Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
A few starting point in the documentation, though: * FrameworkElement.SizeChanged event * Window.DpiChanged event * PerMonitor DPI * Visual class: one of the root class of all visual elements. It has a few interesting methods such as void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi) and GeneralTransform TransformToVisual(Visual visual).
A few years ago, I was working on the editor of the "Xenko" game engine (now "Stride"). We had to play with DPI settings to deal with resizing the scene view that is rendered by the game engine and integrated in the WPF-based editor. it is a huge project, but there are a few entry points that could give you some ideas: * app.manifest: has some dpi awareness settings. * GameEngineHost: overrides the OnDpiChanged method and does some calculation to resize the native control that display the scene, which is not drawn by WPF. You might not need that kind of hack though.