private static void OnHighlightBrushChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TextBlock textBlock = d as TextBlock;
if (textBlock == null)
{
return;
}
Brush brush = GetHighlightBrush(textBlock);
for (int i = 0; i < textBlock.Inlines.Count; i += 2)
{
textBlock.Inlines[i].Foreground = brush;
}
}