// Flash the content area of the control public override void FlashContentControl() { Border contentHost = (Border)this.ContentControl.Template.FindName("PART_Border", this.ContentControl); if (contentHost != null) { TextBlock tb = VisualChildren.GetVisualChild <TextBlock>(contentHost); if (tb != null) { tb.Background = new SolidColorBrush(Colors.White); tb.Background.BeginAnimation(SolidColorBrush.ColorProperty, this.GetColorAnimation()); } } }