private void SetCaretFontSize(double fontSize) { if (Caret == null) return; var textBlock = (TextBlock) Caret.Children[0]; textBlock.FontSize = fontSize; // trigger SizeChanged event (see UpdateCaretMargin) Caret.Margin = new Thickness(0); }