private void InitCaret() { Caret.SizeChanged += (sender, e) => UpdateCaretMargin(); SetCaretFontSize(ActualFontSize); }