This is a migrated thread and some comments may be shown as answers.

Show only 1 "page" at once

3 Answers 98 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kristian Kretschmer
Top achievements
Rank 1
Kristian Kretschmer asked on 11 Dec 2012, 11:13 AM
Hello,

i would like to use the WPF Richtextbox to display some "News" inside our Application.
This News can be different in size, so i need to split the text to different pages, like in Layoutmode "paged".
But also i would like to display only one page at once.
--> Show Page 1 , Blendover, Show Page 2

The best wold be if i can get the different Pages without this "Page" Style around.

So in short:

I need the Documentsplitting from Paged layoutmode, and the clean View from Flow layoutmode, and get / scrollto the different Pages.

I hope you can give ne an Idea how to perform this.

Best Regards,

Michael Rummel,
heinekingmedia GmbH

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 13 Dec 2012, 05:16 PM
Hi Michael,

I am having a hard time understanding all your requirements. However, it sounds like you could use RadRichTextBox in Flow mode, and keep each news in a separate document. Then, when the user wants to preview another piece of news, change the current document in the editor.

If this does not answer your requirements, please elaborate more on your demands and attach some screenshots.


All the best,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kristian Kretschmer
Top achievements
Rank 1
answered on 17 Dec 2012, 08:08 AM
Hi Petya,

thank you for your comment. I will try to explain my problem more detailed.
I need to display a lot of formatted text inside a viewing area ( for example 400 x 200 control ).
Because the customer needs to read all of the text i have to Scroll the text ( this is no problem ) or use an 
Animation to show the next part of the text.

So here i will see the first area (400 x 200) of the Document and at next i need to make the second part (400 x 200) until the end of the document.
Flowlayout would be perfect to use scrolloffset to achieve this ( scrolltooffset (part * controlheight)).
The Problem would be that the parts could begin or end at the middle of a Textline.
In Pagedlayout you only have full textlines, and that is why i wrote that i need the flowlayout style with the pagedlayout parts.

If there are any more Questions for understanding my problem, please let me know, so that i could try to explain it better.

Best Regards,
Michael
0
Petya
Telerik team
answered on 20 Dec 2012, 07:44 AM
Hello Michael,
Thank you for the additional details.
You could try RadRichTextPageView (the usage in WPF is pretty much the same) and see if it fits your scenario. Note that it has limited support and doesn't  support some of the document elements, for example headers/footers/comments/footnotes etc; and works best in read-only mode.

 
All the best,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Kristian Kretschmer
Top achievements
Rank 1
Answers by
Petya
Telerik team
Kristian Kretschmer
Top achievements
Rank 1
Share this question
or