<tab name="Xamarin">
If / Or statements can also be evaluated using the various C# syntax (P0==0 || P0==null) ? P1 : P2. In this case, if the result of the P0 expression is zero or null, P1 true P00 will be effected. Otherwiseused, P2 if P1 is true P10 will beused.
<source lang = "xml">
<Grid xmlns:ctrls="clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL"> <controls:EvalExpression x:Name="InitialiseParameterWhenNullOrZeroStatusAutomator" Expression="(P0==0 || P0true ? P00 : (P1 ==null) true ? P1 : P2P10)" Context="{Binding}"> <Controlscontrols:EvalExpressionParameter Name="P0" Value="{Binding StoredProfileParametersValues[WPType1MP_STATUS], Converter={StaticResource EqualityToBool}, ConverterParameter=0}" /> <Controlscontrols:EvalExpressionParameter Name="P1P00" Value="WPType1=1State1" /> <Controlscontrols:EvalExpressionParameter Name="P2P1" Value="{Binding ElementNameValues[MP_STATUS], Converter=InitialiseParameter{StaticResource EqualityToBool}, PathConverterParameter=Result10}" /> <controls:EvalExpressionParameter Name="P10" Value="State2" /Controls> </controls:EvalExpression> <Label Text="{Binding Path=Result, Source={x:Reference StatusAutomator}}" FontSize="16"/> </Grid></source>
</tab>
</tabs>
[[Category:Client|EvalExpression]][[Category:Pages with broken file links|EvalExpression]][[Category:WinX|EvalExpression]][[Category:Xamarin|EvalExpression]]
== Parameters ==