ScrollViewer not working in Radpane + Prism

2 posts, 0 answers
  1. sonnet
    sonnet avatar
    6 posts
    Member since:
    Aug 2011

    Posted 31 Jan 2012 Link to this post

    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.
  2. sonnet
    sonnet avatar
    6 posts
    Member since:
    Aug 2011

    Posted 01 Feb 2012 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top