CustomRichTextBox StrikeThrough TextDecoration
问题 I want to add a TextDecorations.Strikethrough decoration button to my custom RichTextBox i am using the code bellow for adding and removing the TextDecoration the thing is that i am getting an InvalidCastException: Unable to cast object of type 'MS.Internal.NamedObject' to type 'System.Windows.TextDecorationCollection'. when i am selecting a range greater than the one that is strikedthrough and clicking the "StrikeThrough" button. My Code private void StrikeOutButton_Click(object sender,