Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF MVVM handling multiple selection changes on checking "All" checkbox in dropdown with checkboxes.

$
0
0

Hi all,

I have a combobox box custom control with checkboxes along with "All" checkbox included in the dropdown list in my project. I am using WPF MVVM Pattern. On selecting individual checkbox i am firing a command using interactivity dll on selection changed event. Everything works fine. But when you select "All" checkbox all the items in the combobox are selected and multiple selection changed events are fired. I have to handle this multiple selection changes and make sure the code in viewmodel is executed only once. I don't have access to the custom control code.  I am not sure whether i am clear in explaining the issue or not. Main goal is to handle multiple selection change calls to viewmodel.

Can any one suggest an approach.

Thanks in advance.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>