Replies: 2 comments 3 replies
-
There are some built in mark up extensions. Although they are more to do with platform/device form factor than actual screen size and orientation. https://docs.avaloniaui.net/docs/guides/platforms/platform-specific-code/xaml You could probably write a custom markup extension to provide some more information if you need to change layouts around. Some of it is probably dependent on #15901 though. Generally though, Avalonia does a pretty good job of scaling things itself as long as you don't use fixed sizes for things. https://docs.avaloniaui.net/docs/guides/graphics-and-animation/graphics-and-animations |
Beta Was this translation helpful? Give feedback.
-
You might find this library useful, https://github.com/AvaloniaUI/Avalonia.Xaml.Behaviors. You can get quite far with just using a scrollviewer and letting avalonia deal with all of the sizing. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm absolutely new to Avalonia, and I've been tasked with writing an app. I'm glad because I've wanted to test Avalonia for a long time.
The app has to be responsive and adapt to landscape sizes from 800x600 to 4K. Is there any tutorial, documentation or sample on how to tackle this? Any clues or hints would be welcomed too.
Beta Was this translation helpful? Give feedback.
All reactions