Hiding RadDocumentPane Tab

5 posts, 0 answers
  1. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 03 Oct 2012 Link to this post

    The documentation for How to Remove the Header of the PadPane clearly states that setting the RadDocumentPane Visibility to Collapsed and the CanUserClose to False will remove the Tab and Gray area; yet as illustrated in attached image this is not exactly the case. 

    Apparently I am missing something.

    Any help would be appreciated,
    Steve
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 05 Oct 2012 Link to this post

    Hello Steve,

    Could please share with us which version of the controls you are using, as I tested with the latest available one and everything seems to work as expected?

    Kind regards,
    Konstantina
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 05 Oct 2012 Link to this post

    WPF RadControls - 2012.2.912.40
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Oct 2012 Link to this post

    Hi Steve,

    I am sending you the sample project I used to test the problem. However, everything seems to work as expected.
    Could you please modify it in order to reproduce the issue and send it to us. In that way we will be able to track down the source of the problem in a timely manner.

    All the best,
    Konstantina
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 11 Oct 2012 Link to this post

    Hi Konstantina,

    I modified your project to reflect the architecture in my app and tried to attach it to this reply, but even after changing the extension to .png, I got an error saying the file was invalid.  Instead I've included the xaml below...

    <Window x:Class="DockingWPF.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
        <Grid>
            <telerik:RadDocking HasDocumentHost="True">
                <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical">
                        <telerik:RadPaneGroup SelectedIndex="0">
                            <telerik:RadDocumentPane Header="DockedLeft">
                                <Grid>
                                    <telerik:RadDocking HasDocumentHost="True"
                                                        AllowUnsafeMode="True">
                                        <telerik:RadSplitContainer InitialPosition="DockedLeft"
                                                                   Orientation="Vertical">
                                            <telerik:RadPaneGroup SelectedIndex="0"
                                                                  telerik:ProportionalStackPanel.RelativeSize="100, 50">
                                                <telerik:RadPane Header="DockedLeft">
                                                </telerik:RadPane>
                                            </telerik:RadPaneGroup>
                                        </telerik:RadSplitContainer>
                                        <telerik:RadDocking.DocumentHost>
                                            <telerik:RadSplitContainer InitialPosition="DockedLeft"
                                                                       Orientation="Vertical">
                                                <telerik:RadPaneGroup SelectedIndex="0"
                                                                      telerik:ProportionalStackPanel.RelativeSize="100, 50">
                                                    <telerik:RadDocumentPane Header="DockedLeft"
                                                                             Visibility="Collapsed"
                                                                             CanUserClose="False">
                                                    </telerik:RadDocumentPane>
                                                </telerik:RadPaneGroup>
                                            </telerik:RadSplitContainer>
                                        </telerik:RadDocking.DocumentHost>
                                    </telerik:RadDocking>
                                </Grid>
                            </telerik:RadDocumentPane>
                        </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
              </telerik:RadDocking.DocumentHost>
            </telerik:RadDocking>
        </Grid>
    </Window>



    If you notice, I am nesting a RadDocking instance inside an outer instance (AllowUnsafeMode=True) and am hiding the doc on the inner RadDocking instance.  This doesn't seem to be the source of the problem, since your project still performs correctly.

    I copied your code verbatim back into my app, and included my content, but I still ended up with the same result.  It remains a mystery.

    One thing I noticed when I modified your app is that when you unpin the pane that is docked on the left it is displayed in the outter RadDocking left margin.  I would assume it should display in the inner RadDocking instance.  Anyway,  I have abandoned my efforts in favor of a different approach.

    Thanks for your time and effort,
    Steve

Back to Top
UI for WPF is Visual Studio 2017 Ready