I'm working in WPF and i have an interesting requirement. I need my checkboxes to be ThreeState, so if only some of the child elements are selected it shows as indeterminate. But when a use clicks it, i want it to select either true or false.

Here is a story to represent my requirements:

item - indeterminate  
    subItem - checked  
    subItem - unchecked  
    subItem - checked  

When a user clicks item, the checkbox should alternate between checked and unchecked. The user should never be able to select 'indeterminate' as a state. Is this possible?

Edit
Report