FunctionZero.Maui.zBind
is a xaml
markup extension for MAUI that allows you to bind directly to an expression
Install version 8.0.0 and above for .NET 8.
If you want to do things like this: (note the expression is enclosed inside quotes)
<StackLayout IsVisible="{z:Bind '(Item.Count != 0) AND (Status == \'Administrator\')'}" > ...
- Install
FunctionZero.Maui.zBind
to your shared project - add
xmlns:z="clr-namespace:FunctionZero.Maui.zBind.z;assembly=FunctionZero.Maui.zBind"
To yourxaml
page (or let Visual Studio do it for you)
Head over here for source code, documentation and a sample application