Comments (3)
At some point I wish we could unify Screens API with mobile, moving Screens property to TopLevel. It will also make more sense to add orientation property.
from avalonia.
So, I assume something like this would be enough? cc @kekekeks
public class Screen
{
+ public IPlatformHandle? TryGetPlatformHandle();
}
Returning
-
IntPtr platform handle from
Monitor
on Windows
-
NScreen object IntPtr handle from macOS
-
And I assume X11Monitor Name on X11?
Avalonia/src/Avalonia.X11/X11Structs.cs
Line 1899 in bca559b
Where in all cases it can be a IntPtr wrapped in a PlatformHandle. HandleDescriptor needs to be unique for these types though. Like "HMONITOR" for windows, and "NScreen" on mac (needs to be double checked what we used for NSWindow).
from avalonia.
At some point I wish we could unify Screens API with mobile, moving Screens property to TopLevel. It will also make more sense to add orientation property.
it does make sense~ 👍
from avalonia.
Related Issues (20)
- [Window] Allow add Entry to System Menu
- `BindClass` method's `anchor` should be nullable
- Tunneling KeyDown Event not fired if TextBox has input Focus HOT 2
- Filtering of DataGrid bound to ObservableCollection HOT 2
- Styles regression - 11.0.x works, 11.1.x / master doesnt HOT 2
- DataBinding in XAML ignores access modifiers HOT 2
- CalendarDatePicker's dropdown popup should close when the calendar gets hidden HOT 1
- `[NotClientImplementable]` does not prevent builds HOT 8
- Mica backdrop not working when RenderingMode is set to Win32RenderingMode.Wgl HOT 4
- A way to access the raw input device states via `IInputManager` HOT 4
- SafeAreaPadding is zero when keyboard is in view HOT 1
- av_libglesv2.dll and ibSkiaSharp.dll reference an outdayed zlib and libjpeg-turbo HOT 2
- Can't use mvvm to bind HOT 2
- The ToDoList tutorial fails at the 'add a data context' step HOT 1
- (11.1-beta2) Compositor not always releasing DXGI mutex in Image interop HOT 5
- ListBox SelectionMode setting using Style HOT 4
- The application crashes if the same content is displayed twice in WindowNotificationManager HOT 1
- Some custom fonts in TextBox do not align with the center of the caret HOT 7
- Avalonia App failed to start on iOS 17.5 HOT 1
- Can't open dev tools arch linux + hyprland
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.