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

Possible bug displaying contents of DockPanel when inside Tab?

1 Answer 26 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 28 May 2009, 03:32 PM

I am playing (learning) the RadDock control and I noticed some funny behaviour...

I have a pretty simple UserControl defined as follows.  It is just a rectangle with a green border so I can see if elements are stretching properly.  I have created several of these controls with different colors for my testing.

<UserControl x:Class="RadDocking.pnl_Indicators" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">  
 
    <Border BorderBrush="Green" Background="PaleTurquoise" BorderThickness="2">  
 
        <TextBlock Text="Indicators Panel" FontSize="20" /> 
 
    </Border> 
 
</UserControl> 

When I load these controls into a RadDock control, they appear fine when inside the DocumentHost.  They also appear fine when they are in floating windows.  However, when in a tabbed document, the bottom border is cutoff.  Here is a link to a picture showing the problem....  http://www.robertstraume.com/RadDockBug.jpg

Here is the full code for the RadDock control... I'm not doing anything out of the ordinary as far as I can tell...

<UserControl x:Class="RadDocking.MainPage"  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:RadDocking" xmlns:TC="clr- namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
xmlns:TC_Docking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking">  
 
    <Grid> 
 
        <TC_Docking:RadDocking> 
 
            <TC_Docking:RadDocking.DocumentHost> 
 
                <local:pnl_Worksheet /> 
 
            </TC_Docking:RadDocking.DocumentHost> 
 
            <TC_Docking:RadSplitContainer InitialPosition="DockedBottom">  
                  
                <TC_Docking:RadPaneGroup> 
                      
                    <TC_Docking:RadPane Header="pnl_Profile" CanDockInDocumentHost="False">  
                          
                        <local:pnl_Profile /> 
                          
                    </TC_Docking:RadPane> 
 
                    <TC_Docking:RadPane Header="pnl_Indicators" CanDockInDocumentHost="False">  
 
                        <local:pnl_Indicators /> 
 
                    </TC_Docking:RadPane> 
 
                    <TC_Docking:RadPane Header="pnl_Annotations" CanDockInDocumentHost="False">  
 
                        <local:pnl_Annotations /> 
 
                    </TC_Docking:RadPane> 
 
                </TC_Docking:RadPaneGroup> 
                  
            </TC_Docking:RadSplitContainer> 
              
 
        </TC_Docking:RadDocking> 
 
    </Grid> 
 
</UserControl> 

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 01 Jun 2009, 09:34 AM
Hi Rob,

First of all - you shouldn't have something that is not SplitContainer in the DocumentHost directly - it works, but the control cannot completely support that.

About the issue - I weren't able to reproduce at my side. Everything looks as expected. Please, find the attached .xaml file and screenshots and let us know whether this helps or if you need further assistance.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Docking
Asked by
Rob
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or