Does C# have any MVU in terms in of Application/Web development?

I'm talking about writing up GUI or Web stuff in the style of things like React or Jetpack compose where you create components via code rather than creating the UI and then binding values to it
19 Replies
Buddy
Buddy•9mo ago
No And that coding style sucks anyway, however there may be libraries for WPF / Avalonia that makes it possible
Denis
Denis•9mo ago
There is something like that via open source projects. Not sure if specifically for C#, but surely for F# where you design your components in an Elm-like way. I think it is fable: https://fable.io/
Denis
Denis•9mo ago
There's also https://github.com/elmish/Elmish.WPF/tree/master Not sure if that is what you are looking for
GitHub
GitHub - elmish/Elmish.WPF: Static WPF views for elmish programs
Static WPF views for elmish programs. Contribute to elmish/Elmish.WPF development by creating an account on GitHub.
The Fog from Human Resources
:SCcrying: XML is annoying :SCgetoutofmyhead: If C# implemented an MVU system it would probably be the goat
leowest
leowest•9mo ago
but has worked for more than a decade now
The Fog from Human Resources
That doesn't make it less annoying :SCcrying:
leowest
leowest•9mo ago
annoying to you perhaps 😉
The Fog from Human Resources
Yes!!! That's why I switched to Jetpack compose for GUI
leowest
leowest•9mo ago
either way I think MAUI was supposed to also have MVU counterpart
The Fog from Human Resources
They will probably implement MVU in the future anyways It's only a matter of time :SCcutie:
Buddy
Buddy•9mo ago
They wont And is code-hell I can easily prototype an app in less than 5 minutes with XAML, Bindings, MVVM and MVVM Toolkit. I bet you'd have spent more time crafting a single component in that time with MVU
leowest
leowest•9mo ago
@Fabio from Human Resources there u go https://github.com/dotnet/Comet
GitHub
GitHub - dotnet/Comet: Comet is an MVU UIToolkit written in C#
Comet is an MVU UIToolkit written in C#. Contribute to dotnet/Comet development by creating an account on GitHub.
leowest
leowest•9mo ago
Did not knew they renamed the feature itself into a separated thing but I guess it makes sense
The Fog from Human Resources
yippieee
Denis
Denis•9mo ago
This is very cool, but I personally wouldn't use this for a production app
leowest
leowest•9mo ago
I wouldn't either, I've had enough of winform pitfalls already... but I remember MAUI had MVU but I oculdn't find it anywhere but comet so I assume it was decoupled and renamed
Denis
Denis•9mo ago
the renaming thing is very annoying... Got me very frustrated with Community Toolkit, even though it is a fantastic library
leowest
leowest•9mo ago
yep but community toolkit is different right because it works on any framework I can use it on WPF all the way up but comet is MAUI and yean CTK is really good, I use to use Stylet and moved to CTK
Want results from more Discord servers?
Add your server