Loading of XAML within RadDocking

6 posts, 0 answers
  1. Raja
    Raja avatar
    3 posts
    Member since:
    Feb 2009

    Posted 15 Oct 2010 Link to this post

    In the Docking.Silverlight example, following lines are present 

                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup>
                            <telerik:RadDocumentPane Header="Document 1" Title="Document 1" />
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>

    Now instead of showing this RadDocumentPane, I want to place a TabControl or navigationframe where I want to show other XAML pages. How can I achieve that?

    Thanks
    -Raja
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Oct 2010 Link to this post

    Hi Raja,

    Thank you for contacting us.

    You can put the other controls in the Content of the RadDocumentPane:

    <telerik:RadDocking.DocumentHost>                 
        <telerik:RadSplitContainer>        
           <telerik:RadPaneGroup>                         
             <telerik:RadDocumentPane Header="Document 1" Title="Document1"
               <telerik:RadDocumentPane.Content
                <!-- Put your content here -->
               </telerik:RadDocumentPane.Content
             </telerik:RadDocumentPane>                 
            </telerik:RadPaneGroup>                 
       </telerik:RadSplitContainer>             
    </telerik:RadDocking.DocumentHost

    You can check out also our online demo, in which this also it illustrated.

    Please let us know if you have any other questions.

    Greetings,
    Konstantina
    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
  3. Raja
    Raja avatar
    3 posts
    Member since:
    Feb 2009

    Posted 18 Oct 2010 Link to this post

     Thanks. It worked.

    One more question: When I am setting the content of a seperate XML in RADPane, the new XAML file content is not appearing fully due to absence of Scrolling. The porting in the lower part and the right hand side are not coming fully. 

    What will be the best place to put the Scrollviewer in order to enable scrolling on demand?

    Thanks
    Raja
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 19 Oct 2010 Link to this post

    Hello Raja,

    The ScrollViewer should be also in the DocumentPane. If you want to use the functionality (floating, pinning, etc) of the Pane all should be inside it as a Content.

    Please let us know if you have any other inquiries.

    Greetings,
    Konstantina
    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
  5. Raja
    Raja avatar
    3 posts
    Member since:
    Feb 2009

    Posted 20 Oct 2010 Link to this post

    Thanks. I can open a new XAML page as the content. But I am facing problem with the scrolling. For some pages, it is allowing scrolling when it is not required and as a result, the content area is getting bigger. 

    How I can resize a (XAML)page content within the DocumentPane.Content to fit correctly in browser? 

    Thanks again
    -Raja

  6. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 Oct 2010 Link to this post

    Hello Raja,

    Please find attached a sample project in which is illustrated a possible way of achieving your goal.
    In the project a ScrollViewer is added in the Page1.xaml and in it the content of the Page is put.
    After that the Page is set as a Content of the DocumentPane.

    Hope this is helpful. Please let us know if you have any other questions.

    Sincerely yours,
    Konstantina
    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
Back to Top