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

Dock as a splitter (hide header DocumentHost pane)

2 Answers 212 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 26 Feb 2012, 03:29 PM
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 Answers, 1 is accepted

Sort by
0
Erik
Top achievements
Rank 2
answered on 26 Feb 2012, 05:16 PM
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) ?
0
Ivo
Telerik team
answered on 05 Mar 2012, 10:00 AM
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 >>
Tags
Docking
Asked by
Erik
Top achievements
Rank 2
Answers by
Erik
Top achievements
Rank 2
Ivo
Telerik team
Share this question
or