关键代码
var template = checkBox1.Template;
var myControl = template.FindName("textBlock1", checkBox1);
var tb = myControl as TextBlock;
tb.Background = new SolidColorBrush(Colors.LightPink);
示例代码
ControlTemplateDemo.xaml
ControlTemplateDemo.xaml.cs
参考资料
How do I access an element of a control template from within code-behind