Represents a report element that displays an image.
Namespace: MindFusion.Reporting.Wpf
Assembly: MindFusion.Reporting.Wpf
SyntaxC#
Copy Code
|
|---|
public class Picture : ReportItem |
Visual Basic
Copy Code
|
|---|
Public Class Picture |
RemarksIn order to associate an image with the Picture element, assign any WPF System.Windows.Media.ImageSource object to its Image property. The stretching and alignment of the displayed image can be specified through the HorizontalAlignment and VerticalAlignment properties.
Alternatively, pictures can be bound to fields in a data source. To do this, the picture must be placed in a data-bound context and its Image property must be bound to the respective data field using standard WPF bindings.
ExampleThe following sample code demonstrates the use of Picture objects in XAML:
XAML
Copy Code
|
|---|
<r:Report x:Name="ProductCategories"> |
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.Picture
See Also