getting checked checkboxes values mvvm light wpf -
I have a user control where the main categories are shown in the form of a button from the database by clicking on the main category button , A new user control is being opened with that list of items clicked in that related category. I am binding the item names of category which uses TexbBlock in XML and showing the checkbox with each item to choose from. After selecting them I want to get the value of the check box and I want to click on the full button. The checkbox value should have the Item ID in the database. How to obtain the selected checkbox value.
For xaml is here:
-> & Lt; Text block text = "{binding sub-category name}" horizontal alignment = "center" vertical element = "top" /> & Lt; Checkbox Grid Line = "3" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; /ItemsControl.ItemTemplate>
Thanks,
Tarun
I think what you need to do, you have a Boolean property, which is called "checked" (or something like that), then it's your own By typing in the checkbox
"notation" = "{binding check, mode = dow}" "
" mode = two "will mean that when you press the checkbox If you check, the binding will automatically see you.
Hopefully It helps
Comments
Post a Comment