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

MSWord Example DocumentModelTreeViewer Question

4 Answers 139 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 1
Jamie asked on 08 Feb 2011, 09:46 PM
I am looking at the MS Word example of the RadRichTextBox and was implementing the Document Structure button under the view tab and saw that the following code in the example for the DocumentStructure Click Event.

private void ViewDocumentStructure_Click(object sender, RoutedEventArgs e)
        {
            RadWindow window = new RadWindow();

            DocumentModelTreeViewer documentTreeViewer = new DocumentModelTreeViewer();
            documentTreeViewer.DisplayDocumentLayoutTree(this.editor.Document);

            window.Content = documentTreeViewer;

            window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen;
            window.Width = 600;
            window.Height = 750;

            window.ShowDialog();
        }


I am wondering where DocumentModelTreeView comes from. When I search this on this website nothing comes up. When I search on Google, nothing comes up...Where is this coming from?


Edit: I am referencing the MSWordExample.xaml.cs file from http://demos.telerik.com/silverlight/#RichTextBox/MSWord.

4 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 09 Feb 2011, 02:48 PM
Hi Jamie,
DocumentModelTreeViewer is a custom class that we use only in the demos - you can view its source code
in the samples solution installed with the controls - basically it presents document structure as a tree.
If you want to create full featured editing UI, you can look at our blog post describing how to do that using the Visual Studio designer - it is not nessesary to reference MSWordExample user control.

Don't hesitate to contact us if you have other questions.

Kind regards,
Boby
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Angeli
Top achievements
Rank 1
answered on 25 May 2011, 07:30 AM
Hello. Where can i exactly find the source code in the samples solution installed with the controls?
0
Iva Toteva
Telerik team
answered on 25 May 2011, 05:43 PM
Hello Angeli,

If you had installed the controls in the default path, the code of the tree viewer must be at the following location:

C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2011\Demos\Examples\RichTextBox\DocumentTreeViewer

For reference, the Binaries folder is also located in the folder:
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2011\

I hope this helps.


All the best,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Angeli
Top achievements
Rank 1
answered on 25 May 2011, 05:59 PM
Thank you!
Tags
RichTextBox
Asked by
Jamie
Top achievements
Rank 1
Answers by
Boby
Telerik team
Angeli
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or