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

ListBoxHelper.ItemsRemoveButton双击判定可能存在问题 #217

Open
HeShiwen opened this issue Apr 8, 2024 · 1 comment
Open

ListBoxHelper.ItemsRemoveButton双击判定可能存在问题 #217

HeShiwen opened this issue Apr 8, 2024 · 1 comment

Comments

@HeShiwen
Copy link

HeShiwen commented Apr 8, 2024

ListBoxHelper.ItemsRemoveButton双击时会先触发单击事件,移除该Item,随后触发Item的双击事件。触发已经被移除的Item的双击事件时,此Item为Null,这可能会造成问题。这个问题可以从Item双击事件中加入Null判定解决,但是此ListBoxHelper.ItemsRemoveButton从直觉上应该没有双击事件。
希望讨论此问题,并确定是否需要修改。

@Mochengvia
Copy link
Collaborator

我尝试在RemoveButton上以最快的速度双击,这只会连续移除两个子项,并且没有触发ListBoxItem的双击事件。
怎样操作才能在RemoveButton上双击?或者说,触发的是ListBox的双击事件,而不是ListBoxItem的双击事件?
请告诉我更多信息。

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

2 participants