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

How Get xaml for RadRichTextPageView

1 Answer 42 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
l
Top achievements
Rank 1
l asked on 12 Dec 2013, 07:38 AM
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>

       

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 16 Dec 2013, 05:11 PM
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 >>
Tags
RichTextBox
Asked by
l
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or