The Evaluation view allows the user to test code expressions that are defined in a set of control bindings.
When developing templates that define how source and target properties are bound a set of default code expressions are generated that provide the means for defining how a value from a source is converted into its required target value. By default, the generated code expression for a binding simply maps the value of the source Property to the target Property without any modification. Changes to the default mapping expressions can be tested using the evaluation function.
When the right mouse-click context menu item Compile and Evaluate Property Snippet is clicked, all selected control bindings are compiled. The results of the compilation that includes the generated expression source code class and its referenced control binding source and target properties are presented in the Evaluation view to allow the user to test the results of the code expressions developed for each control binding. Values can be entered in the column labeled "Source Value". The code expression will then be evaluated and its target Control Property value will be updated to reflect the code expression result as indicated in the column labeled "Target Value".
If source or target Control Property of a control binding is changed or its code expression is modified it must be recompiled to reflect the change to the Evaluation view.
To evaluate all control bindings click in the Properties grid of the Control Binding view and press the key combination Ctrl+A to select all control binding items. Right mouse-click to display the context menu and select the menu item Compile and Evaluate Property Snippet. Only the items selected will be compiled and presented in the Evaluation view. Any existing items that were present in the view will be cleared and replaced by the results of the new compilation.
Features
Target properties that are dependent on a particular source property will automatically be updated when the value for the source Property is changed.
Value rounding options are evaluated and applied when testing expression bindings.