vendredi 30 janvier 2015

Select a CheckBox in a ListBox by clicking on the background

I have a little problem with my ListBox

I can check a CheckBox by clicking on the text,

But if I click on the background I can't check my CheckBox

That make me feel so bad...


I suppose that I can create a method to solve my problem,

But I would like to know if there a property to fix this easily.

Thanks for helping.



<ListBox x:Name="DeleteEntreesListBox">
<CheckBox x:Name="myTextBox" Content="Hello"/>
</ListBox>


If my cursor is on the text the box is gray and can be check. Screen

If my cursor is not on the text but on the background the box is white and can't be check Screen





Aucun commentaire:

Enregistrer un commentaire