After restarting everything seems to be working again as expected, doesn't look like any updates were installed.
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
Issue #7609 was closed, but this is easily reproducible.
1. Intall SDK 7.0 (I guess this is needed?)
2. Create a new WPF project targeting .NET 6.
3. Override `OnDpiChanged` as shown below.
4. Run the app.
5. Change the DPI on the active monitor.
**Expected:** `OnDpiChanged` should be called.
**Actual:** `OnDpiChanged` is **not** called.
```c#
protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi)
{
MessageBox.Show("Dpi changed!");
base.OnDpiChanged(oldDpi, newDpi);
}
```
To work around this issue, add an `app.manifest` to the application and make sure `dpiAware` is set to **true/PM**:
**app.manifest**
```xml
true/PM
```
Contributor guide
Assessment
This issue has not been assessed yet.