Represents a custom report item, which provides its own DataTemplate for visualization.
Namespace: MindFusion.Reporting.Wpf
Assembly: MindFusion.Reporting.Wpf
SyntaxC#
Copy Code
|
|---|
public class CustomReportItem : ReportItem |
Visual Basic
Copy Code
|
|---|
Public Class CustomReportItem |
RemarksThe CustomReportItem can be used to embed arbitrary WPF elements in a report. The visual tree of the item is specified through a DataTemplate assigned to its Template property. The data content of the item is specified through its Value property. During rendering the CustomReportItem internally creates a WPF ContentControl and assigns Value and Template to its Content and ContentTemplate properties respectively.
ExampleCustomReportItem which displays a WPF TextBlock with a Border around it. The width of the border is proportional to an IntField property of the associated DataContext.
XAML
Copy Code
|
|---|
<r:CustomReportItem Size="100%,20"> |
In the above example the item is considered part of a report named report and the namespace r is defined as follows:
XAML
Copy Code
|
|---|
xmlns:r="http://mindfusion.eu/reporting/wpf" |
Inheritance HierarchySystem.Object![]()
System.Windows.Threading.DispatcherObject![]()
System.Windows.DependencyObject![]()
System.Windows.Media.Visual![]()
System.Windows.UIElement![]()
System.Windows.FrameworkElement![]()
MindFusion.Reporting.Wpf.ReportItem
MindFusion.Reporting.Wpf.CustomReportItem
See Also