The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

ScrollingData Current Page

Last post 09-18-2008, 11:07 AM by mjp14. 0 replies.
Sort Posts: Previous Next
  •  09-18-2008, 11:07 AM 8393

    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>

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems