HandyOrg / HandyOrg/HandyControl

允许 hc:Pagination 仅当点击页面/跳转时才触发 PageUpdated 事件

Open
#1,703 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Feature request type

enhancement

Is your feature request related to a problem? Please describe

有时,我希望用户点击页码/跳转才触发 PageUpdated 事件,比如我的程序支持类似浏览器一样的前进、后退操作,当前进、后退时,页面的数据被还原,但由于PageIndex 发生改变,导致 PageUpdated 事件再次被调用,这是不必要的事件响应,

Describe the solution you'd like

可以新增一个 Command 属性来实现此功能。

Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the hc:Pagination control and trace how PageIndex changes trigger PageUpdated. Review the existing event and command-related API, then define the requested opt-in behavior so navigation by page click or jump can trigger PageUpdated while restored page state does not; verify both paths with the project’s relevant tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.