My task is to create a small text editor (as a diploma), only with various features, like snippets, insert formulas, etc.
The solution is to build an application based on RichTextBox and FlowDocument's and fasten the required functionality.
Problem
I do not quite understand how a FlowDocument container breaks content into pages. Rather, at what point, for example, does the same Word understand that it’s time to move to a new page?
From which a reasonable question arises: if I want to display a large document on different visual pages on the UI, then how best to implement it? Should there be your own RichTextBox on each visual page, or is it better to write your own FlowDocument container (which will obviously be worse than the richbox itself) splitting the content into different pages?
By the way, it is believed that RichTextBox is not the most optimal control for such purposes.