Building Dynamic UI with Decision Logic in .NET MAUI XAML
Dynamic UIs in .NET MAUI usually lean on bindings, triggers, converters, and behaviors—but sometimes you want more direct if/switch-style rendering in XAML.
This post surveys the built-in options and then introduces two custom controls (ConditionView and SwitchCaseView) that make decision-based layouts easier to express and reuse.