HandyOrg / HandyOrg/HandyControl
Bug title Checkcombox绑定有问题
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
CheckComboBox多选框使用hc:ListBoxAttach.SelectedItems绑定选择项,会报警告找不到源: RelativeSource FindAncestor, AncestorType='HandyControl.Controls.TagContainer', AncestorLevel='1'。且绑定选择的内容可以通过后端更新,通过界面修改后传递过来的值就是null的了
Steps to reproduce the bug
<hc:CheckComboBox
hc:InfoElement.ShowClearButton="True"
hc:InfoElement.Title="筛选条件"
hc:ListBoxAttach.SelectedItems="{Binding SelectConditions}"
ItemsSource="{Binding FilterConditions}"
ShowSelectAllButton="True" />
Expected behavior
No response
Screenshots
No response
NuGet package version
None
IDE
No response
Framework type
No response
Windows version
No response
Additional context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CheckComboBox usage and the ListBoxAttach.SelectedItems binding shown in the report; reproduce the RelativeSource warning and the null value after a UI change. Done means the binding works without the warning and backend updates and interface changes both preserve the selected values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100