How Get xaml for RadRichTextPageView

2 posts, 0 answers
  1. l
    l avatar
    3 posts
    Member since:
    Nov 2010

    Posted 12 Dec 2013 Link to this post

    How Can I get the right xaml for RadRichTextPageView? i will export the xaml to database;and import it from database to  new RadRichTextPageView; so i can add the radrichtextPageview to a bookpage;the book has many pages which some created by raddocumemnt,but some others by canvas;all bookpages will convert xaml and save in the database
    "
    ex:the next xml i get,and i use xamlReader.load(),it's error
    <Grid Tag="WordRichText" Width="794" Height="1123">                
                    <Border Tag="Shadow">                    
                        <telerik:RadRichTextPageView xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Tag="WordRichText">                        
                            <telerik:RadRichTextPageView.ViewManager xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">          
                                <telerik:DocumentViewManager xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
                                    <telerik:DocumentViewManager.Document xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
                                        <telerik:RadDocument xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
      
                                        </telerik:RadDocument>
                                    </telerik:DocumentViewManager.Document>                                    
                                </telerik:DocumentViewManager>
                            </telerik:RadRichTextPageView.ViewManager>
                        </telerik:RadRichTextPageView>
                    </Border>
                    <Rectangle Tag="WordrtbRec" Fill="#00FFFFFF" Stroke="#00FFFFFF" StrokeThickness="0" Stretch="Fill" />
                </Grid>

           

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 16 Dec 2013 Link to this post

    Hello,

    As far as I understand your requirements, you wish to export the document shown in a RadRichTextPageView as part of the page template of a RadBook. Please correct me if I am wrong.

    I suppose you are following this demo as an example in which case you could simply export the document in the DocumentViewManager like this:
    string content = new XamlFormatProvider().Export(this.viewManager.Document);

    I hope this helps!

    Regards,
    Petya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top