I have started to DoAThing.
Kind of #unity hub, but for #godot.
(changing the installs directory also moves the installations if the user wants)
(add new installation is the next step)
Code here: https://gitea.foxthesystem.space/mattia/looking-for-godot
Written in #MAUI because, hey, why not try something new.
the way XAML in MAUI doesn't have an easy functionality like ternary operators and conditional rendering is baffling to me.
(unless there's something new that I'm missing: https://github.com/dotnet/maui/discussions/11102 )
Just as the fact that BinarySearch exists on List<T> but not on IList<T> (like observable collections), or that there's no easy, built-in system to have filtered and ordered collections and/or same features on a view.
or maybe the fact that there are elements where you just can't tap or click - and, you know, this is a functionality needed to create *links* ( https://github.com/dotnet/maui/issues/4734 )
So, apparently the way to conditionally have different templates in #netmaui is to make a control (ContentView) which has datatrigger style triggers that change its ControlTemplate.
And this is not even the worst, given that you have to divine the BindingContext of the ControlTemplate, which turns out to be:
BindingContext="{Binding Source={RelativeSource AncestorType={x:Type viewmodel:GodotInstallation}}}"
I'm not even joking.
And all this isn't even in the official documentation.
AAAAAAA
On the other hand, the installation screen is getting somewhere, in the little free time I have!