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

RadFrameContrainer as a child of ScrollViewer?

1 Answer 62 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Daniel Cohen-Dumani
Top achievements
Rank 2
Daniel Cohen-Dumani asked on 27 Jun 2009, 08:12 PM
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" />

 

 

 

</Controls:RadFrameContainer>

 

</

 

ScrollViewer>

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 01 Jul 2009, 12:04 PM
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.
Tags
Navigation
Asked by
Daniel Cohen-Dumani
Top achievements
Rank 2
Answers by
Kiril Stanoev
Telerik team
Share this question
or