CeSuX Weeder CeSuX Weeder - 1 month ago 7
C# Question

WPF RichTextBox puts 2 lines instead of 1 when clicking enter

I am working with a RichTextBox, and whenever I click enter, the text skips one line and goes to other.

As following:

Text... (Clicks enter)

Text... (Goes here)

Instead of:

Text... (Clicks enter)

Text... (Goes here)

How can I fix this?

Answer

Try this solution: How do I change RichTextBox paragraph spacing?

The issue you are seeing is related to Paragraph spacing.