I have several controls such as radio buttons within a DataTemplate I set as the EditTemplate of a RadDataForm as shown in the "Customized Fields" page code snippet. I'm trying to access the controls of that DataTemplate in code-behind in a similar way as it is supposed to be possible in a SL toolkit DataForm control:
Loaded += MainPage_Loaded;
sender, RoutedEventArgs e)
currentRadioButton = ((RadDataForm)sender).FindName(
currentRadioButton.FontWeight = FontWeights.Bold;
I also tried by accessing the 'Resources' member:
currentRadioButton = ((RadDataForm)sender).Resources[
but when the line where the font weight is changed is reached, I get an exception because currentRadioButton is always null. Is there any way to access the controls within a DataTemplate in code-behind to change dynamically their properties?