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

ScrollViewer not working in Radpane + Prism

1 Answer 158 Views
Docking
This is a migrated thread and some comments may be shown as answers.
sonnet
Top achievements
Rank 1
sonnet asked on 01 Feb 2012, 02:24 AM

I am not able to get the scrolling working on RadPanes which are loaded using Prism's region manager onto a RadGroup.

Here is the main shell window which is hosting RadDock

<Grid>
   <telerik:RadDocking AllowUnsafeMode="True" Grid.Row="1"> 
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static CommonUI:Constants.RegionShellCenter}" />
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>

       <telerik:RadSplitContainer InitialPosition="DockedRight" Width="600" >
                <telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static CommonUI:Constants.RegionShellRight}"/>
            </telerik:RadSplitContainer>
    </telerik:RadDocking>
  </Grid>

Here is my RadPane class that I load onto the above RadPaneGroup. This pane hosts a local usercontrol.

<telerik:RadPane x:Class="MyNamespace.ReservoirDataPane"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:prism="http://www.codeplex.com/prism"
             xmlns:local="clr-namespace:MyNamespace"
             Header="Reservoir">
     <local:ResPropControl/>
</telerik:RadPane>
 [Export]
    public partial class ReservoirDataPane : RadPane
    { }


I tried having Scroll around the RadPaneGroup and then inside RadPane around the local usercontrol. I also tried enabling it in the
Grid inside the usercontrol. None of this worked. Any help will be greatly appreciated. Thanks.

1 Answer, 1 is accepted

Sort by
0
sonnet
Top achievements
Rank 1
answered on 02 Feb 2012, 05:15 AM
Solved!! The issue was with the usercontrol that I was loading onto RadPane with ScrollViewer. The usercomntrol was developed in Blend and had Canvas element around the grid. Once I removed Canvas and cleaned up the xaml in usercontrol, the scrollviewer works inside my radpane.
Tags
Docking
Asked by
sonnet
Top achievements
Rank 1
Answers by
sonnet
Top achievements
Rank 1
Share this question
or