You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hc:Pagination 获取的pageindex值 是上次的,例如我有2页,当前页为第2页,点击第1页时触发事件,触发事件代码中CommandParameter获取到的PageIndex值却为历史值2
代码如下:
<hc:Pagination Name="coolingIndx" HorizontalAlignment="Center" MaxPageCount="{Binding MaxCount}" PageIndex="1" IsJumpEnabled="True" DataCountPerPage="10" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="PageUpdated">
<i:InvokeCommandAction Command="{Binding PageUpdatedCommand}" CommandParameter="{Binding ElementName=coolingIndx, Path=PageIndex}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</hc:Pagination>
Beta Was this translation helpful? Give feedback.
All reactions