This is a migrated thread and some comments may be shown as answers.
Styling RadPaneGroup
8 Answers 48 Views
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 01 Aug 2011, 11:49 PM
How do I make the (dock type/pin/close) buttons visible only when the mouse is inside the corresponding control? Is there a pre-configured style that does it?

Thanks!
-Andrew

8 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 04 Aug 2011, 09:04 AM
Hello Andrew,

This is not supported out of the box and is not an easy task. However, I have prepared a sample application in which this is illustrated, but it might have some issues.

Hope it will help.

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Andrew
Top achievements
Rank 1
answered on 07 Aug 2011, 03:34 AM
Hi Konstantina,

Thanks a lot for the example, this is exactly what I wanted! Awesome!

Indeed, the solution is quite big (~800 lines on xaml), just wondering if you would consider adding it to the library as a pre-built style? It looks great and really improves user experience when there are many panes on the screen.

Thank you!
-Andrew
0
Konstantina
Telerik team
answered on 09 Aug 2011, 01:04 PM
Hi Andrew,

Thank you for your suggestion. We will consider include this to the style of the RadDocking control.

Best wishes,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Andrew
Top achievements
Rank 1
answered on 07 Nov 2011, 05:09 PM
Just wondering if you decided to include it in the library?

By the way, there is a problem with the provided code - if you undock and then dock a panel back, its content disappears.
0
Konstantina
Telerik team
answered on 09 Nov 2011, 10:22 AM
Hi Andrew,

There was a binding missing in the style. To fix it, find the ContentControl with  x:Name="ContentBackground" and in it the ContentPresenter with x:Name="ContentElement". Set its Content property to the following: Content="{TemplateBinding SelectedContent}".

Best wishes,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Andrew
Top achievements
Rank 1
answered on 15 Nov 2011, 04:27 AM
Hi Konstantina,

I tried it and, unfortunately, it didn't have any effect. Here's what the corresponding section looks like:

                <ContentControl x:Name="ContentBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Style="{StaticResource PaneGroup_PaneFrameStyle}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Border Grid.Row="0" Visibility="{Binding SelectedItem.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}">
                            <telerik:PaneHeader x:Name="HeaderElement" MinHeight="16" Grid.Row="0" SelectedPane="{TemplateBinding SelectedPane}" telerik:StyleManager.Theme="{StaticResource Theme}" Style="{StaticResource PaneHeaderStyle}"/>
                        </Border>
                        <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContent}" Grid.Row="1"/>
                    </Grid>
                </ContentControl>

Thanks,
Andrew
0
Konstantina
Telerik team
answered on 17 Nov 2011, 03:26 PM
Hello Andrew,

Attached I am sending you the project modified with the suggested change, which seems to be working correctly. Could you please go through it and modify it so that the issue can be observed. Also, the section you pasted is not with added binding to the Content property of the ContentPresenter.

Hope this helps.

Best wishes,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Andrew
Top achievements
Rank 1
answered on 01 Dec 2011, 10:57 PM
Hi Konstantina,

The attached example works beautifully (indeed, the problem was with Content property binding), thanks a lot!

You are my hero :)
-Andrew
Asked by
Andrew
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or