The check box is within a dock panel so that it can be centred on the table cell even over resize.
To do this I have to go trough all table elements and find out my check boxes to set them checked or not checked.
After some time searching fora solution this is what came out:
public void TopCheckBoxChecked(object sender, RoutedEventArgs e)
if (mach != null)
int row = 1;
int col = 0;
foreach (UIElement element in m_tableGrid.Children)
if (Grid.GetColumn(element) == col && Grid.GetRow(element) == row)
(((element as DockPanel).Children as UIElement) as CheckBox).IsChecked = (sender as CheckBox).IsChecked;
Not so simple as I would have hopped.
For reference check this blog entry:
Ian Oakes on WPF and Silverlight