WPF ListView item selection unchecks checkbox?

If you don't need to modify the checkbox, then change the binding to OneWay and/or set IsEnabled on the checkbox to False.

Up vote 0 down vote favorite share g+ share fb share tw.

I have a this code: When I select an item in the listview, it unchecks the checkbox which bleeds through to the binding. How can I prevent this? Edit / Clarification: What I want to prevent is the checkbox from being affected when the item is selected.

Wpf listview gridview mvvm checkbox link|improve this question edited Feb 24 '11 at 18:12 asked Feb 22 '11 at 20:04Justin479 50% accept rate.

– Berryl Feb 22 '11 at 23:51 When the checkbox is checked/unchecked, it updates an xml configuration file and then kicks off some processes. It passes along the "Netcast" object to the command. (the netcast I'm updating) – Justin Feb 24 '11 at 18:10 I left off something important.

I had a CommandBehaviorBinding that lets you assign a command to the selectionchanged event. I took this off and it stopped unchecking the checkbox. I guess I have to find another way.

– Justin Mar 2 '11 at 1:28.

I do need to modify it. That's why its a problem. If you'll notice, there is a command on the checkbox.

– Justin Feb 22 '11 at 20:10.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions