Dock as a splitter (hide header DocumentHost pane)

3 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 26 Feb 2012 Link to this post

    Hi,

    I've seen a lot of posts on it, but all older and some refereing to new additions in coming releases.

    I would like to use the RadDocking as a splitter (there is none in Silverlight, is that right? used to asp.net so...)

    I've could create on, but have some issues with it. In my scenario it must be a left docked pane with a content pane that fills the rest of the screen.

    What I've got you can see in the image attached. I used a document host to make the content pane. I could not find how to do it differently (could only initially dock left, right, top, bottom or float) this may be a normal pane, I don't mind. Thing is that the header (and closing and so on) must be hidden and I do not want the border. I tried to hide the header with "PaneHeaderVisibility", but has no effect. Also setting border props has no effect.

    Here's some XAML:
    ....
    <telerik:RadDocking x:Name="TheDock">
        <!--DocumentHost-->
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane CanFloat="False" BorderBrush="Red" BorderThickness="1" CanUserClose="False" CanUserPin="False"
                                            PaneHeaderVisibility="Collapsed" >
                        <telerik:RadPane.Content>
                            <TextBlock TextWrapping="Wrap" Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." />
                        </telerik:RadPane.Content>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
     
        <telerik:RadSplitContainer Orientation="Vertical" telerik:DockingPanel.InitialSize="270,150" MaxWidth="600" Name="LeftDesignNavigationContainer" InitialPosition="DockedLeft">
            <telerik:RadPaneGroup x:Name="DesignNavigation">
                <telerik:RadPane Header="Design Navigation" CanFloat="False" CanUserClose="False" CanUserPin="False" CanDockInDocumentHost="False" ContextMenuTemplate="{x:Null}">
                    <StackPanel>
                        <ListBox x:Name="leftListBox">
    .....

    How can I implement this splitting with sizing?

    Tanks in advance for any pointers,

    Erik

  2. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 26 Feb 2012 Link to this post

    Well, stumbled on this:
    http://www.telerik.com/help/silverlight/raddocking-how-to-remove-the-header-of-the-radpane.html 
    You can hide pane headers and the RadDocumentPane tab parts.

    But my intention was a splitter with in the content pane a raddock. This does give a "flicker" but then a empty screen. 

    Is it not possible to place a raddock in a radpane/RadDocumentPane (of an other dock) ?
  3. DevCraft banner
  4. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 05 Mar 2012 Link to this post

    Hello,

    I am not sure I completely understand your scenario, but if the desired functionality is like on the attached image I would suggest you to place to RadPaneGroups into the RadSplitContainer of your DocumentHost. Here is sample code:
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup>
                <telerik:RadPane CanFloat="False" BorderBrush="Red" BorderThickness="1" CanUserPin="False"
                                Visibility="Collapsed"
                                 CanUserClose="False">
                    <telerik:RadPane.Content>
                        <TextBlock TextWrapping="Wrap" Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." />
                    </telerik:RadPane.Content>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
            <telerik:RadPaneGroup>
                <telerik:RadPane CanFloat="False" BorderBrush="Red" BorderThickness="1" CanUserPin="False"
                                Visibility="Collapsed"
                                 CanUserClose="False">
                    <telerik:RadPane.Content>
                        <TextBlock TextWrapping="Wrap" Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." />
                    </telerik:RadPane.Content>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>

    If this is not what you are trying the achieve, could you please give more information?

    Regards,
    Ivo
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top