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
SyntaxC#
Copy Code
|
|---|
public class ExpressionExtension : MarkupExtension |
Visual Basic
Copy Code
|
|---|
Public Class ExpressionExtension |
RemarksThis 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.
ExampleThis 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" |
Inheritance HierarchySystem.Object![]()
System.Windows.Markup.MarkupExtension![]()
MindFusion.Reporting.Wpf.ExpressionExtension
See Also