MindFusion.Wpf Pack Programmer's Guide
ExpressionExtension Class
Remarks See Also
 





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

 Syntax

C#  Copy Code

public class ExpressionExtension : MarkupExtension

Visual Basic  Copy Code

Public Class ExpressionExtension
    Inherits MarkupExtension

 Remarks

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.

 Example

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"

 Inheritance Hierarchy

System.Object
    System.Windows.Markup.MarkupExtension
        MindFusion.Reporting.Wpf.ExpressionExtension

 See Also

ExpressionExtension Members
MindFusion.Reporting.Wpf Namespace