MindFusion.Reporting for Silverlight Programmer's Guide
ReportItem.PageCurrent Property
See Also
 





Gets the index of the page this item is laid out on. This is a dependency property.

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

 Syntax

C#  Copy Code

public int PageCurrent { get; }

Visual Basic  Copy Code

Public ReadOnly Property PageCurrent As Integer

 Property Value

The 1-based index of the page containing this item; or -1 if the report, containing the item, is not laid out.

 Remarks

The most scenario is to use this property in the text of a label on a page, in order to display the index of the page.

 Example

The following example demonstrates how to bind to this property in XAML:

XAML  Copy Code

<r:Label Text="{Binding PageCurrent, RelativeSource={RelativeSource Self}}" />

A shorter version using expression instead of binding will look like the following:

XAML  Copy Code

<r:Label Text="[PageCurrent()]" />

PageCurrent is a special function, which can be used in expressions. It simply returns the value of this property on the current item.

 See Also

ReportItem Members
ReportItem Class
MindFusion.Reporting.Silverlight Namespace
PageCount Property
RangeItemCount Property
RangeItemCurrent Property