You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Supposed that we are developing such an app:
It has a floating icon on the desktop/screen
The icon will reposition and rescale itself when the screen resolution or scaling is changed
Avalonia 11.1.0 now only provide an event of Window.ScalingChanged that will be raised when the screen scaling is changed. But if the screen resolution is changed, it provide nothing. So our desktop icon doesn't know when to reposition it.
For example, the desktop icon is position at the top-right corner of the screen displaying in 3840x2160 and now the user changes the resolution to 1920x1080, the icon will be out of the screen. (Note: If the window is an override redirect window, the desktop window manager will not reposition it.)
Describe the solution you'd like
Add an event Changed to Avalonia.Controls.Screens class
The event should be raised when the screen resolution, scaling, orientation, layout, count, etc. are changed
Describe alternatives you've considered
Add a native callback into the X11Properties class, which is the same as what in the Win32Properties class.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Supposed that we are developing such an app:
Avalonia 11.1.0 now only provide an event of
Window.ScalingChanged
that will be raised when the screen scaling is changed. But if the screen resolution is changed, it provide nothing. So our desktop icon doesn't know when to reposition it.For example, the desktop icon is position at the top-right corner of the screen displaying in 3840x2160 and now the user changes the resolution to 1920x1080, the icon will be out of the screen. (Note: If the window is an override redirect window, the desktop window manager will not reposition it.)
Describe the solution you'd like
Changed
toAvalonia.Controls.Screens
classDescribe alternatives you've considered
X11Properties
class, which is the same as what in theWin32Properties
class.Additional context
The text was updated successfully, but these errors were encountered: