Comments (5)
Media query API can re-use the same new Screen API as well.
from avalonia.
from avalonia.
How would we identify a particular screen? By connector id?
from avalonia.
@kekekeks does it work as an answer? #15382 (comment)
from avalonia.
I think a user readable identifier would also be useful, even if it's only implemented on some platforms. EG if you can read EDID (should be possible on all desktops) you can get the manufacturer name, model number and serial number of the display. EDID however is not always the most reliable thing (EG it's very easy to spoof on Linux), but it makes it much easier to show/handle monitors with the same model number/display name. Even if the ports they are connected to changes.
But otherwise this change looks pretty good. There is probably also some other things that might be useful (EG colour depth, DPI, supported resolutions, etc), but they are fairly minor. SDL's display APIs can probably be used for some inspiration as SDL supports pretty much every platform ever created.
https://wiki.libsdl.org/wiki/index
from avalonia.
Related Issues (20)
- Can't edit cells of datagrid with DataGridCollectionView in ItemsSource HOT 1
- Bindings uses only "dynamic" properties when DataGrid item inherited from IReflectableType HOT 2
- Cant edit DataGrid cell, bound to "dynamic" item property, implementer by IReflectableType
- when set `{x:Null}` to any control's `FontFamily` property, application will crashed HOT 4
- BackgroundSizing Inner/Outer do not work like Center when CornerRadius is very large (i.e. 999) HOT 5
- DataContext value in DevTools displayed as null if type of value inherited from System.ComponentModel.Component HOT 3
- InlineUIContainer breaks SelectableTextBlock selection
- DBus folder dialog doesn't work with RHEL 8.5 HOT 1
- SaveFilePickerAsync duplicates FilePickerFileType extension when there is more than one period in the extension.
- When mounted, TabStrip changes SelectedItem to the first one and then reverts it back
- iOS apps don't build HOT 1
- CPU usage is really high again... HOT 5
- DataGrid Adaptive exception HOT 6
- AutoCompleteBox not biding SelectedItem when using AsyncPopulator HOT 1
- Android - Crash on bluetooth keyboard device connection and disconnection HOT 2
- [Linux] WindowStartupLocation does not respect DesktopScaling factor HOT 2
- [11.1-beta2] Regression: Window System buttons is not visible when `ExtendClientAreaToDecorationsHint="True"` HOT 2
- AccessViolationException when using RenderDoc on Windows HOT 1
- Copying of file not working as expected
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.