Hi,
I have a XamComboEditor with checkbox with each item. I want a checkbox with SelectAll option, which selects all the checkbox's at one go, and fires a Command on the ViewModel.
Is there any such implementation within XamComboEditor?
Thanks,
VJ
Hi Elena, I tried your sample CheckBoxCombo (2).zip, which works for me, But no problem is, How do I uncheck the 'Select All' checkbox if one of the checkboxes gets uncheck.Hope to get help from you soon. If you have any questions please let me know. Thanks,Khush
Hello VJ,
I was just wondering did you have a chance to try my sample. If you still need any assistance on the matter, please do not hesitate to ask.
Here is the modified sample application where I used the approach described in my previous post. I move the default styles to the App.xaml file and bound the Command property of the “Select all” checkbox to a command from may view model and I provide a parameter for it that holds a reference to the XamComboEditor and current value of the “Select all ” checkbox.
If you need any additional clarifications on this matter. Please do not hesitate to contact me.
thanks for the reply.
Can you give me a sample project having this implementation?
I can see your concerns and I believe that your best option in case of multiple xamComboEditors is to move the style I created for you inside the App.xaml file instead of the resource section of the window and instead of handling Checked/Unchecked events you can bind the CheckBox’s Command property. Furthermore it may be suitable in your case to add as CommandParameter reference to the XamComboEditor itself, so you can iterate through the elements of the concrete editor and change their selection.
If you have any further questions on this matter, please do not hesitate to ask.