Gets the index of the page this item is laid out on. This is a dependency property.
Namespace: MindFusion.Reporting.Wpf
Assembly: MindFusion.Reporting.Wpf
SyntaxC#
Copy Code
|
|---|
public int PageCurrent { get; } |
Visual Basic
Copy Code
|
|---|
Public ReadOnly Property PageCurrent As Integer |
The 1-based index of the page containing this item; or -1 if the report, containing the item, is not laid out.
RemarksThe 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.
ExampleThe 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