hi
I have wpf MVVM application I have a view which contain a checkbox if slected a bunch of textboxes will be displayed in the same view I got several other textboxes that will be automatically be inserted into database.
I need an approach that will enable me to determine if check box is selected insert the textboxes value along side the automatically inserted value I'll be using stored procedure.
any help will be appreciated
Loading
Abbas HamzaPosted Jul 20, 2014, 12:44 PM
Appreciate you taking the time for answering :
in my viewModel i have the following code which call datacontext class
so you are saying in my xaml i need to pass this command to my check box along side the parameter to IsSelected.
regards
Posted Jul 15, 2014, 8:51 AM
Use Command property of checkbox, will help you to solve your problem.
follow some steps i have mention below.
Steps
1. Create command in your class that your are using as datacontext of view
2. bind the created command with you checkbox command, pass the IsChecked property value to command as command parameter.
3. now you can check paramente that will tell you whether the checkbox is checked or not. this will solve your problem
kindly mark as answer if above solves your problem
Thanks