WPF RichTextBox: How to change selected text font?
问题 how can I change the font for a currently selected text area inside a WPF RichTextBox? 回答1: I've implemented a toolbar that can change the font size, family, color, etc. What i found is the details can be tricky with the wpf richtextbox. Setting the selection font makes some sense, but, there are also the default font properties of the text box, and the current caret properties to contend with. Here is what i've written to get it to work for most cases with the font size. The process should