Skip to content

Bug title Checkcombox绑定有问题 #1699

@dawndawnZyx

Description

@dawndawnZyx

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

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