Skip to content

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

@dswfort

Description

@dswfort

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions