Represents a report element that displays an image.
Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight
C# Copy Code |
---|
public class Picture : ReportItem |
Visual Basic Copy Code |
---|
Public Class Picture |
In order to associate an image with the Picture element, assign any Silverlight 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 Silverlight bindings.
The following sample code demonstrates the use of Picture objects in XAML:
XAML Copy Code |
---|
<r:Report x:Name="ProductCategories"> |
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
MindFusion.Reporting.Silverlight.ReportItem
MindFusion.Reporting.Silverlight.Picture