This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to use the book to create a diary in which users can create 1 entry a day.
The itemsSource is defined as follows:
This collection contains 1 object a day for a period that the user selects.
If there's an odd number of items in the collection, i.e. 3 objects, then the last page is a leftpage.
I expect the book to contain the following pages:
Page1 (left) : (rightpageindex - 1) = 0
Page2 (right): rightpageindex = 1
Page3 (left): rightpageindex = 2
However, after I browse to the last page, something happens to the rightpageindex and it becomes:
Page1 (left) : (rightpageindex - 1) = -1
Page2 (right) : rightpageindex = 0
Page3 (left) : rightpageindex = 2
Am I doing something wrong?
I'm trying to use the book to create a diary in which users can create 1 entry a day.
<
telerik:RadBook
Grid.Row
=
"0"
x:Name
=
"book"
ItemsSource
=
"{Binding DagboekNotities}"
LeftPageTemplate
=
"{StaticResource LeftPageTemplate}"
RightPageTemplate
=
"{StaticResource RightPageTemplate}"
FirstPagePosition
=
"Left"
IsKeyboardNavigationEnabled
=
"True"
Margin
=
"2"
/>
The itemsSource is defined as follows:
Private _dagboekNotities As New ObservableCollection(Of DagboekNotitieVoorsteller)
Public Property DagboekNotities() As ObservableCollection(Of DagboekNotitieVoorsteller)
Get
Return _dagboekNotities
End Get
Set(ByVal value As ObservableCollection(Of DagboekNotitieVoorsteller))
_dagboekNotities = value
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("DagboekNotities"))
End Set
End Property
This collection contains 1 object a day for a period that the user selects.
If there's an odd number of items in the collection, i.e. 3 objects, then the last page is a leftpage.
I expect the book to contain the following pages:
Page1 (left) : (rightpageindex - 1) = 0
Page2 (right): rightpageindex = 1
Page3 (left): rightpageindex = 2
However, after I browse to the last page, something happens to the rightpageindex and it becomes:
Page1 (left) : (rightpageindex - 1) = -1
Page2 (right) : rightpageindex = 0
Page3 (left) : rightpageindex = 2
Am I doing something wrong?