MindFusion.Reporting for Silverlight Programmer's Guide
PrerenderEventArgs.RootVisual Property
See Also
 





Gets or sets the visual representing the item in the rendering.

Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight

 Syntax

C#  Copy Code

public UIElement RootVisual { get; set; }

Visual Basic  Copy Code

Public Property RootVisual As UIElement

 Property Value

A Silverlight UIElement object.

 Remarks

The UIElement returned by this property represents the visual appearance of the item in the final report. The properties of the UIElement can be modified in order to customize the item appearance. The UIElement can also be replaced but the size of the new element will not affect the current report layout. Therefore it is advisable that the new element has the same size as the existing element, as specified by Size.

The structure of the RootVisual depends on the type of the report item being rendered. The following table lists the structure of the RootVisual corresponding to different report items.

Report Item

RootVisual

CustomReportItem

<ContentControl />

ItemContainer

<Border />

Label

<Border>
    <TextBlock />
</Border>

Page

<Border />

Picture

<Border>
    <Image />
</Border>

PieChart

<Border>
    <Canvas>
        <PiePiece />
       
        <PiePiece />
    </Canvas>
</Border>

 See Also

PrerenderEventArgs Members
PrerenderEventArgs Class
MindFusion.Reporting.Silverlight Namespace