Gets the index of this item within a data range (if any). This is a dependency property.
Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight
C# Copy Code |
---|
public int RangeItemCurrent { get; } |
Visual Basic Copy Code |
---|
Public ReadOnly Property RangeItemCurrent As Integer |
The 1-based index of this item within its containing data range; or -1 if the item does not belong to a data range or if the report, containing the item, is not laid out.
The most scenario is to use this property in the text of a label, contained in a DataRange, in order to display successive numbering.
The following example demonstrates how to bind to this property in XAML:
XAML Copy Code |
---|
<r:Label Text="{Binding RangeItemCurrent, RelativeSource={RelativeSource Self}}" /> |
A shorter version using expression instead of binding will look like the following:
XAML Copy Code |
---|
<r:Label Text="[RangeItemCurrent()]" /> |
RangeItemCurrent is a special function, which can be used in expressions. It simply returns the value of this property on the current item.