Silverlight Control does not work THAT good

I have this problem that I have a small menu with a croll panel .. inside there are a couple of checkboxes. When repeating these checkboxes, I get a zero error. This seems to be triggered whenever the checkbox is checked, not part of the visible thingy menu space. Like Silverlight, just trigger this checkbox when scrolling down so that it is visible.

Anyone have any ideas how to get around this?

+3
source share
1 answer

When repeating using checkboxes, try adding a check to see if you are really dealing with a checkbox, and not something else in the element.

Loop thru children
  if(child is CheckBox){ 
  // Do what you want with the checkbox
  } 
+1
source

All Articles