Show only 1 "page" at once

4 posts, 0 answers
  1. Kristian Kretschmer
    Kristian Kretschmer avatar
    9 posts
    Member since:
    Jun 2012

    Posted 11 Dec 2012 Link to this post

    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
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 13 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Kristian Kretschmer
    Kristian Kretschmer avatar
    9 posts
    Member since:
    Jun 2012

    Posted 17 Dec 2012 Link to this post

    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
  5. Petya
    Admin
    Petya avatar
    975 posts

    Posted 20 Dec 2012 Link to this post

    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.

Back to Top