[Mac Catalyst] DeviceDisplay.MainDisplayInfo is not refreshed #22642
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
partner/cat 😻
this is an issue that impacts one of our partners or a customer our advisory team is engaged with
partner
Issue or Request from a partner team
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Milestone
Description
The information (DisplayInfo) returned by DeviceDisplay.MainDisplayInfo does not get refreshed on macOS after changing display options (in Settings > Displays) like resolution, scaling, rotation, etc., or when switching the display that is designated as the Main display. Potentially related to #22634.
For comparison, on Windows the expected DisplayInfo is returned reflecting changes to system display configuration. Expectation is that the macOS version behaves consistently with the Windows version.
Steps to Reproduce
Create a file -> new .NET MAUI app. In MainPage.xaml.cs, paste the
ReadDeviceDisplay
method from the Main display info documentation modifying to output to the console instead of theDisplayDetailsLabel
used in that example. Then, update the templated Button click event handler to call theReadDeviceDisplay
function.Using screen resolution as the example of a change to display information expected to be reflected in the DisplayInfo.
EXPECTED
The (DisplayInfo) output the second time around is different to the first. In this case, showing different height and width values.
ACTUAL
The (DisplayInfo) outputs remain the same.
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
Mac Catalyst 13.1
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: