Jump to: navigation, search

Changes


EvalExpression

No change in size, 08:47, 18 January 2021
/* Simple Calculation */
<tab name="Xamarin">
The following example shows how to use the control with three parameters, where the first two are user input (Editor ''Param0'' and ''Param1'') and the third one is a property from its DataContext (ViewModel). The evaluated ''Result'' is then bound to an Entry Label for output in the UI.
<source lang = "xml">
<StackLayout clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL>
<ctrls:EvalExpressionParameter Name="P2" Value="{Binding IsLoggedIn}" />
</ctrls:EvalExpression>
<Entry Label Text="{Binding ElementName=Evaluator, Path=Result}" />
</StackLayout>
</source>