Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination当总页数为0时报绑定错误 #824

Closed
dswfort opened this issue May 12, 2021 · 0 comments
Closed

Pagination当总页数为0时报绑定错误 #824

dswfort opened this issue May 12, 2021 · 0 comments

Comments

@dswfort
Copy link

dswfort commented May 12, 2021

Describe the bug
升级到3.1后,当查询不到数据,即页数为0时,报绑定错误,就像这样:
image
之前用的2.5.0.2版本则不会有这个错误

To Reproduce
我的代码如下:

<hc:Pagination Grid.Row="2" Margin="5" MaxPageCount="{Binding TotalPageCount}" PageIndex="{Binding PageNo,Mode=TwoWay}" DataCountPerPage="{Binding PageSize}">
    <hc:Interaction.Triggers>
        <hc:EventTrigger EventName="PageUpdated">
            <hc:EventToCommand Command="{Binding ChangePage}" PassEventArgsToCommand="True" />
        </hc:EventTrigger>
    </hc:Interaction.Triggers>
</hc:Pagination>

当TotalPageCount=0时就报这个错

Environment (please complete the following information):

  • .net: 4.6.1
  • IDE vs2019 16.9.3
  • Version 3.1
@NaBian NaBian closed this as completed in 8ca0eb5 May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant