|
|
ScrollingData Current Page
Last post 09-18-2008, 11:07 AM by mjp14. 0 replies.
-
09-18-2008, 11:07 AM |
-
mjp14
-
-
-
Joined on 08-13-2008
-
Buffalo, NY
-
Posts 59
-
-
|
ScrollingData Current Page
im trying to implement left/right arrows for a scroller (code below), however the left arrows visibility is never set to false once the first page is reached. It appears the ScrollingData's page never gets set back to one after a right scroll is performed. The right arrow works fine. Any ideas?
< Changed Source="[ScrollingData.CurrentPage]">
< Conditions>
< Equality Source="[ScrollingData.CurrentPage]" Value="1" ConditionOp="GreaterThan"/>
</ Conditions>
< Actions>
< Set Target="[ScrollerArrowLeft.Visible]" Value="true"/>
</ Actions>
</ Changed>
< Changed Source="[ScrollingData.CurrentPage]">
< Conditions>
< Equality Source="[ScrollingData.CurrentPage]" Value="1"/>
</ Conditions>
< Actions>
< DebugTrace Message="false"/>
< Set Target="[ScrollerArrowLeft.Visible]" Value="false"/>
</ Actions>
</ Changed>
< Changed Source="[ScrollingData.CurrentPage]">
< Conditions>
< Equality Source="[ScrollingData.CurrentPage]" Value="[ScrollingData.TotalPages]" ConditionOp="LessThan"/>
</ Conditions>
< Actions>
< Set Target="[ScrollerArrowRight.Visible]" Value="true"/>
</ Actions>
</ Changed>
< Changed Source="[ScrollingData.CurrentPage]">
< Conditions>
< Equality Source="[ScrollingData.CurrentPage]" Value="[ScrollingData.TotalPages]"/>
</ Conditions>
< Actions>
< DebugTrace Message="false"/>
< Set Target="[ScrollerArrowRight.Visible]" Value="false"/>
</ Actions>
</ Changed>
|
|
|
|