RegionManager not finding regions in Dock???

2 posts, 0 answers
  1. Tom Thomas
    Tom Thomas avatar
    4 posts
    Member since:
    Nov 2009

    Posted 31 Dec 2009 Link to this post

    If I place a ContentControl defined as a region in CAL inside the radDock:RadDocking window the Region Manager will not find it.

    If it is outside it finds it OK?  Thoughts.....

    See XMAL below

    <

     

    Grid x:Name="LayoutRoot">

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    <RowDefinition Height="*" />

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

    <!--Header Region -->

     

     

     

    <Grid Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

     

     

     

    <!--<ContentControl x:Name="HeaderRegionContentControl" cal:RegionManager.RegionName="HeaderRegion" ></ContentControl>-->

     

     

     

    <StackPanel Grid.Column="1" HorizontalAlignment="Right" Margin="4" Orientation="Horizontal">

     

     

     

    <Button Content="Search Customers" Width="120" Height="22" Click="OnSearchCustomers"/>

     

     

     

    <Button Content="Search Contacts" Width="120" Height="22" Click="OnSearchContacts"/>

     

     

     

    </StackPanel>

     

     

     

    </Grid>

     

     

     

    <radDock:RadDocking x:Name="radDocking" Grid.Row="1">

     

     

     

    <radDock:RadDocking.DocumentHost>

     

     

     

    <radDock:RadSplitContainer>

     

     

     

    <radDock:RadPaneGroup x:Name="radMainGroup">

     

     

     

    <radDock:RadDocumentPane Title="Main Content Region" CanFloat="False" CanUserClose="False">

     

     

     

    <radDock:RadDocumentPane.Content>
    Region Manager will not find this

     

     

     

    <ContentControl x:Name="MainContentControl" cal:RegionManager.RegionName="MainContentRegion"></ContentControl>

     

     

     

    </radDock:RadDocumentPane.Content>

     

     

     

    </radDock:RadDocumentPane>

     

     

     

    </radDock:RadPaneGroup>

     

     

     

    </radDock:RadSplitContainer>

     

     

     

    </radDock:RadDocking.DocumentHost>

     

     

     

    <radDock:RadSplitContainer radDock:DockingPanel.InitialSize="235,235" MaxWidth="600" Name="LeftContainer" InitialPosition="DockedLeft">

     

     

     

    <radDock:RadPaneGroup x:Name="Group1">

     

     

     

    <radDock:RadPane x:Name="PanelTreeView" Header="Document Explorer" CanDockInDocumentHost="False" CanUserClose="False" CanFloat="False">

     

     

     

    <!--<ContentControl x:Name="NavigationContentControl" cal:RegionManager.RegionName="NavigationRegion" ></ContentControl>-->

     

     

     

    </radDock:RadPane>

     

     

     

    </radDock:RadPaneGroup>

     

     

     

    </radDock:RadSplitContainer>

     

     

     

    </radDock:RadDocking>

     

     

     

     

     

    <StackPanel Grid.Row="2" HorizontalAlignment="Left" Orientation="Horizontal">

     

     

     

    <TextBlock Text="Status Bar" Margin="2"/>

     

     

     

    </StackPanel>

     

     

     

    </Grid>

     

  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 04 Jan 2010 Link to this post

    Hello Tom Thomas,

    Please refer to our forum thread where you can find interesting notes regarding the usage of Prism and RadDocking.

    Kind regards,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top