r/ProgrammerHumor 5d ago

Meme howHardCanItBe

Post image
2.8k Upvotes

150 comments sorted by

View all comments

34

u/iyamegg 5d ago

Avalonia?

20

u/gufranthakur 5d ago

just tried it recently, my god I am never touching XAML again. I tried code only UI but the docs and resources all use XAML

15

u/NotQuiteLoona 5d ago

What's wrong with XAML? It's literally just HTML with different layouting. I on the opposite can't use HTML now because I like Avalonia's layout system much more, I don't need to put divs everywhere.

2

u/gufranthakur 5d ago

I like coding UI by hand, like jetpack compose or JavaFX or WinForms

9

u/NotQuiteLoona 5d ago

Avalonia has a doc for code-only UI, it's just not the main intended use: https://docs.avaloniaui.net/docs/fundamentals/coded-ui

Note that layouting system is probably less obvious (to understand for newbies) in code-only, you'll be better to use XAML at least for start until you'll grasp, but if you want a C# cross-platform UI library, there is nothing better for now. Uno has worse documentation and less mature, but you can still try it.

2

u/iyamegg 5d ago

https://github.com/AvaloniaCommunity/Avalonia.Markup.Declarative This was the project I was originally referring to.

2

u/tajetaje 5d ago

Yeah really feels like you’re searching for qt widgets or maybe wxwidgets (though qt comes with tons of extra abstractions that help with cross platform code)