Dynamically adding an event handler to checkbox
I have created a treeview from xml file by calling addTreenode. In my treeview each treeViewItem has a checkbox created dynamically.I want to call an event when one of the checkbox is checked... How to add an event handler to this checkbox's... Thanks in advance
Pankaj SinghPosted Oct 13, 2014, 1:17 PM
CheckBox.Click += new RoutedEventHandler(CheckBox_Checked);
this will make CheckBox to call the handler function on each click... Tested..
Santhosh Kumar JayaramanPosted Aug 30, 2012, 1:58 AM