Jump to: navigation, search

Changes


EvalExpression

11 bytes added, 07:51, 11 January 2021
/* Setting a calculated Property Value */
The following example shows how to create a button that adds and stores +5 to the value of a a numeric property named ''MP_EXAMPLE'', every time it is pressed:
<source lang = "xml">
<Grid xmlns:ctrls="usingclr-namespace:UBIK.WinXCPL.Controls";assembly=UBIK.CPL>
<ctrls:EvalExpression x:Name="Evaluator" Expression="&quot;MP_EXAMPLE|&quot; + (P0 + 2)">
<ctrls:EvalExpressionParameter Name="P0" Value="{Binding Values[MP_EXAMPLE], Converter={StaticResource ToType}, ConverterParameter='System.Int32'}" />