RadFrameContrainer as a child of ScrollViewer?

2 posts, 1 answers
  1. Daniel Cohen-Dumani
    Daniel Cohen-Dumani avatar
    7 posts
    Member since:
    Jun 2005

    Posted 27 Jun 2009 Link to this post

    I am wondering if the scenario of including a RadFrameContainer immediately as a child of the ScrollViewer element is supported.
    I am modifying the Wizard sample application and trying to introduce content overflow handling. Whenever I setup the desired scenario, I no longer get any display fo the source controls loaded throgh the RadFrame control. As a last resort, I could have all my page controls implement their own scrollers, but this will needlessly complicate the implemenation.

    Code below:



    ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto">




    Controls:RadFrameContainer Grid.Row="1" Margin="10 0 0 0" x:Name="MainPagepanel" >




    <Controls:RadFrame Source="SelectTargetRepo" />











  2. Answer
    Kiril Stanoev
    Kiril Stanoev avatar
    1508 posts

    Posted 01 Jul 2009 Link to this post

    Hello Daniel,

    Assume you have a button on Page1.xaml and you want to navigate to Page2.xaml. Before you navigate, in the event handler of the Click event, you have to set the ChildContainer to the RadFrameContainer.

    private void Button_Click(object sender, RoutedEventArgs e) 
        // MainPagePanel is the RadFrameContainer containing RadFrame1 
        this.ChildContainer = MainPagePanel; 
        RadFrame1.Navigate(new Page2()); 

    I have attached a sample project demonstrating how to navigate from Page1 to Page2. Page2 gets displayed in a ScrollViewer which is a child of Page1.
    Have a look at it and let me know how it works for you.

    Sincerely yours,
    Kiril Stanoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft R3 2016 release webinar banner
Back to Top