A XAML markup extension which allows the use of general MindFusion expression as values in XAML property initialization.
Namespace: MindFusion.Reporting.Wpf
Assembly: MindFusion.Reporting.Wpf
C# Copy Code |
---|
public class ExpressionExtension : MarkupExtension |
Visual Basic Copy Code |
---|
Public Class ExpressionExtension |
This class enables the use of MindFusion expressions as property values in XAML. For more information about MindFusion expressions, check Expressions. This extension does not necessarily need to be used in the context of a MindFusion report. See the section below for an example on how to use expressions in XAML.
This example assigns a simple algebraic expression to the Width property of a WPF Button:
XAML Copy Code |
---|
<Button Width="{r:Expression '[CDbl((4+6)*10)]'}" Content="Hello" /> |
In the above example the namespace r is defined as follows:
XAML Copy Code |
---|
xmlns:r="http://mindfusion.eu/reporting/wpf" |
System.Object
System.Windows.Markup.MarkupExtension
MindFusion.Reporting.Wpf.ExpressionExtension