proposal to solve the C# UI ecosystem problem: write your app logic/services in C#, then write your UI in F# using Avalonia.FuncUI https://funcui.avaloniaui.net/
Comments
Log in with your Bluesky account to leave a comment
this might actually be a plausible solution
- still using C# without fighting FP paradigms constantly
- still using Avalonia which works everywhere & has a decent ecosystem of custom controls
- UI in code (no XAML!), with hooks/components and everything. it's like React for the mentally deranged
i really like react/flutter way of making ui
it's really flexible and easy to work with for me
there is also ui framework that i keep in eye on https://pangui.io/#
it's super flexible and designed to be embeddable
but it's still not release yet
(THIS IS JUST MY OPINION THIS IS NOT AN OBJECTIVE FACT) I do not like most C# UI libraries because they are either
- Windows only (WinForms, WPF)
- put heavy emphasis on XAML or MVVM patterns (Avalonia, Uno)
- just a web view (MAUI)
- native bindings to something else (ImGui)
- unmaintained
I prefer to represent my UI directly in code (mainly because I grew up writing/modding web apps), not have the UI designed separately to the logic (like how XAML works). I haven't found a (stable production-ready) library to do that yet, but FuncUI is a F# wrapper around Avalonia
I just don't want to use F# for all of my application logic (I view functional programming as a tool, not a thing I want to be locked into constantly), so I had the idea to represent my logic in C# but UI in F#, and it actually kinda works well!
Makes sense. I've only done CLI and tiny server stuff in C#. Most of my UI stuff in the last few years has been typescript and Vue talking to a backend in some other language.
Comments
- still using C# without fighting FP paradigms constantly
- still using Avalonia which works everywhere & has a decent ecosystem of custom controls
- UI in code (no XAML!), with hooks/components and everything. it's like React for the mentally deranged
it's really flexible and easy to work with for me
there is also ui framework that i keep in eye on
https://pangui.io/#
it's super flexible and designed to be embeddable
but it's still not release yet
- Windows only (WinForms, WPF)
- put heavy emphasis on XAML or MVVM patterns (Avalonia, Uno)
- just a web view (MAUI)
- native bindings to something else (ImGui)
- unmaintained