RadPane loses content

2 posts, 1 answers
  1. Riccardo
    Riccardo avatar
    36 posts
    Member since:
    Apr 2009

    Posted 26 May 2009 Link to this post

    Hi forum people, I've still checked a little bug.
    If you put into a RadPaneGroup some RadPane(s) with different content declaration, which with content declared "nested"  (<radpane><something...></radpane>),when you switch tab, lose content.
    If you undock that "loser" pane from dock group, content re-appers.

    1  <radDock:RadPaneGroup> 
    2                     <radDock:RadPane Header="Pane0" IsPinned="true" CanUserClose="False" > 
    3                         <TextBlock TextWrapping="Wrap" 
    4                                         Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
    5                     </radDock:RadPane> 
    6                     <radDock:RadPane Header="Pane0" IsPinned="true" > 
    7                         <TextBlock TextWrapping="Wrap" 
    8                                         Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
    9                     </radDock:RadPane> 
    10                     <radDock:RadPane Header="Pane0" IsPinned="true" > 
    11                         <TextBlock TextWrapping="Wrap" 
    12                                         Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
    13                     </radDock:RadPane> 
    14                     <radDock:RadPane x:Name="PLTest" content="My content is here!" header="Test"></radDock:RadPane> 
    15                 </radDock:RadPaneGroup> 


    Thanks

  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 27 May 2009 Link to this post

    Hi Riccardo,

    Thank you for your report!

    This is a bug in the Silverlight ContentPresenter. Show shouldn't use string content, because the ContentPresenter (that is used to display Pane's content) breaks. Just wrap it into some visual element (TextBlock for example) or put a ContentTemplate to the pane to show the string content as shown below:
    <radDock:RadDocking> 
        <radDock:RadSplitContainer> 
            <radDock:RadPaneGroup> 
                <radDock:RadPane Header="Pane0" IsPinned="true" CanUserClose="False"
                    <TextBlock TextWrapping="Wrap"  
                            Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                </radDock:RadPane> 
                <radDock:RadPane Header="Pane0" IsPinned="true"
                    <TextBlock TextWrapping="Wrap"  
                            Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                </radDock:RadPane> 
                <radDock:RadPane Header="Pane0" IsPinned="true"
                    <TextBlock TextWrapping="Wrap"  
                            Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                </radDock:RadPane> 
                <radDock:RadPane x:Name="PLTest" Content="My content is here!" Header="Test"
                    <radDock:RadPane.ContentTemplate> 
                        <DataTemplate> 
                            <TextBlock Text="{Binding}" /> 
                        </DataTemplate> 
                    </radDock:RadPane.ContentTemplate> 
                </radDock:RadPane> 
            </radDock:RadPaneGroup> 
        </radDock:RadSplitContainer> 
    </radDock:RadDocking> 

    Hope this helps.

    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