Propagate ListBoxItem IsSelected trigger to child control

前端 未结 1 1176
失恋的感觉
失恋的感觉 2021-01-29 06:43

I\'m developing a CheckedListBox with self removable ListBoxItems. The problem is that an item only gets checked if the user clicks on the CheckBox are

1条回答
  •  旧时难觅i
    2021-01-29 07:14

    For further reference for those who come across this same question, here's a working snippet I have done. I couldn't find any working sample anywhere, so this might be of much use.

    The main idea here was to either propagate the selection event to the CheckBoxes, which sounds too much of a work, or to simple extend the CheckBox selection area to fit the ListBoxItem.

    Below is a sample on how to achieve the second option:

    
        
            
        
    
    

    This should produce the following:

    0 讨论(0)
提交回复
热议问题