[Mac Catalyst] DeviceDisplay.MainDisplayInfoChanged event not getting raised #22634
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 DeviceDisplay.MainDisplayInfoChanged event is not getting raised when the main display information changes on macOS. For example, when changing display options (in Settings > Displays) like resolution, scaling, rotation, etc., or when switching the display that is designated as the Main display.
By way of comparison, the same event does get raised when changes are made on Windows. In multi-display setups, the event will also get raised on Windows when moving an application Window from one display to another.
Overarching expectation is that the behavior is consistent between Windows and Mac Catalyst where platform SDKs support detection of changes to those display screen metrics represented in the DisplayInfo
Steps to Reproduce
Subscribe the DeviceDisplay.MainDisplayInfoChanged event in the
MainPage.xaml.cs
class of a file -> new .NET MAUI app outputting the serialized DeviceInfo provided by the DisplayInfoChangedEventArgs.Using screen resolution as the example of a change to display information expected to raise the event.
EXPECTED
The DeviceDisplay.MainDisplayInfoChanged event gets raised
ACTUAL
The event does not get raised
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: