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

Header in RadDocking.DocumentHost

1 Answer 87 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Gilmar
Top achievements
Rank 1
Gilmar asked on 07 Mar 2013, 05:07 PM
Hello

I would add a RadExpander Header in a DocumentHost a RadDocking. The pages would always be switched but Radexpander would be the top standard for all pages.

I tried inserting a RadDocumentPane principal and the objects within it. The radExpander works but the screens give internal error when I drag.

If RadPaneGroup had a header, I could insert the radExpander i, but i canĀ“t.

How can I fix this ?

Follow my code

<UserControl x:Class="RadDockingTemas.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadDocking>                        
            <telerik:RadSplitContainer>                
                <telerik:RadPaneGroup x:Name="radPaneGroup1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                                              Width="auto" Margin="0" Foreground="{x:Null}">
                    <telerik:RadPane x:Name="pnMenu" Width="52"  HorizontalAlignment="Stretch"
                                             PaneHeaderVisibility="collapsed" IsPinned="True" CanUserClose="False">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>                    
            </telerik:RadSplitContainer>            
            <telerik:RadDocking.DocumentHost>                
                <telerik:RadSplitContainer BorderThickness="0" Margin="0,-6,0,0" Background="Transparent">
                    <telerik:RadPaneGroup BorderThickness="0">                    
                            <telerik:RadDocumentPane>
                                <telerik:RadDocumentPane.HeaderTemplate>
                                    <DataTemplate>
                                    <telerik:RadExpander>
                                        <Rectangle Fill="Red" Height="100"/>
                                    </telerik:RadExpander>
                                </DataTemplate>
                                </telerik:RadDocumentPane.HeaderTemplate>                                
                                <telerik:RadPaneGroup BorderThickness="0">                        
                                <telerik:RadDocumentPane Title="teste"/>
                                <telerik:RadDocumentPane Title="teste2"/>                                
                            </telerik:RadPaneGroup>
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>                        
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
        </telerik:RadDocking>
    </Grid>
</UserControl>
 

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 13 Mar 2013, 09:04 AM
Hi Gilmar,

I have a look at the xaml you sent to us and noticed that you inserted RadPaneGroup inside the RadPane. That is the reason you've got the exception. Please try the code snipped below:

<telerik:RadDocking>                       
           <telerik:RadSplitContainer>               
               <telerik:RadPaneGroup x:Name="radPaneGroup1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                             Width="auto" Margin="0" Foreground="{x:Null}">
                   <telerik:RadPane x:Name="pnMenu" Width="52"  HorizontalAlignment="Stretch"
                                            PaneHeaderVisibility="collapsed" IsPinned="True" CanUserClose="False">
                   </telerik:RadPane>
               </telerik:RadPaneGroup>                   
           </telerik:RadSplitContainer>           
           <telerik:RadDocking.DocumentHost>               
               <telerik:RadSplitContainer BorderThickness="0" Margin="0,-6,0,0" Background="Transparent">
                   <telerik:RadPaneGroup BorderThickness="0">
                       <telerik:RadDocumentPane>
                           <telerik:RadDocumentPane.HeaderTemplate>
                               <DataTemplate>
                                   <telerik:RadExpander>
                                       <Rectangle Fill="Red" Height="100"/>
                                   </telerik:RadExpander>
                               </DataTemplate>
                           </telerik:RadDocumentPane.HeaderTemplate>
                       </telerik:RadDocumentPane>
                       <telerik:RadDocumentPane Title="teste"/>
                       <telerik:RadDocumentPane Title="teste2"/>
                   </telerik:RadPaneGroup>
                   <telerik:RadPaneGroup BorderThickness="0">
                       <telerik:RadDocumentPane Title="teste"/>
                       <telerik:RadDocumentPane Title="teste2"/>
                   </telerik:RadPaneGroup>
 
               </telerik:RadSplitContainer>
           </telerik:RadDocking.DocumentHost>
 
       </telerik:RadDocking>

and let me know if it works for you.

All the best,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Gilmar
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or