Possible bug displaying contents of DockPanel when inside Tab?

2 posts, 0 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 28 May 2009 Link to this post

    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.

    1 <UserControl x:Class="RadDocking.pnl_Indicators" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">  
    2  
    3     <Border BorderBrush="Green" Background="PaleTurquoise" BorderThickness="2">  
    4  
    5         <TextBlock Text="Indicators Panel" FontSize="20" /> 
    6  
    7     </Border> 
    8  
    9 </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...

    1 <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" 
    2 xmlns:TC_Docking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking">  
    3  
    4     <Grid> 
    5  
    6         <TC_Docking:RadDocking> 
    7  
    8             <TC_Docking:RadDocking.DocumentHost> 
    9  
    10                 <local:pnl_Worksheet /> 
    11  
    12             </TC_Docking:RadDocking.DocumentHost> 
    13  
    14             <TC_Docking:RadSplitContainer InitialPosition="DockedBottom">  
    15                   
    16                 <TC_Docking:RadPaneGroup> 
    17                       
    18                     <TC_Docking:RadPane Header="pnl_Profile" CanDockInDocumentHost="False">  
    19                           
    20                         <local:pnl_Profile /> 
    21                           
    22                     </TC_Docking:RadPane> 
    23  
    24                     <TC_Docking:RadPane Header="pnl_Indicators" CanDockInDocumentHost="False">  
    25  
    26                         <local:pnl_Indicators /> 
    27  
    28                     </TC_Docking:RadPane> 
    29  
    30                     <TC_Docking:RadPane Header="pnl_Annotations" CanDockInDocumentHost="False">  
    31  
    32                         <local:pnl_Annotations /> 
    33  
    34                     </TC_Docking:RadPane> 
    35  
    36                 </TC_Docking:RadPaneGroup> 
    37                   
    38             </TC_Docking:RadSplitContainer> 
    39               
    40  
    41         </TC_Docking:RadDocking> 
    42  
    43     </Grid> 
    44  
    45 </UserControl> 
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Jun 2009 Link to this post

    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.
Back to Top