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

Hide Title Bar on Floating Docking Pane

2 Answers 52 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Emery
Top achievements
Rank 1
Emery asked on 25 Jul 2018, 04:55 PM

How can I hide the title bar of a floating Telerik pane in WPF? I tried setting the PaneHeaderVisibility property but that only had an effect when the pane was docked. Here's the XAML:

<telerik:RadSplitContainer x:Name="Splitter" InitialPosition="FloatingDockable" telerik:RadDocking.IsAutoGenerated="True">

     <telerik:RadPaneGroup telerik:RadDocking.IsAutoGenerated="True" >

<controls:MyPane x:Name="MyPane" Header="Results" IsTabStop="False" CanUserClose="False" PaneHeaderVisibility="Hidden"> <Grid Name="MyGrid"> <controls:Legend Name="Legend"></controls:Legend> </Grid> </controls:MyPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer>

2 Answers, 1 is accepted

Sort by
0
Emery
Top achievements
Rank 1
answered on 25 Jul 2018, 05:00 PM

Sorry, I accidently submitted this before it was finished. Here is the XAML:

<telerik:RadSplitContainer x:Name="Splitter" InitialPosition="FloatingDockable" telerik:RadDocking.IsAutoGenerated="True">

<telerik:RadPaneGroup telerik:RadDocking.IsAutoGenerated="True" >

<controls:MyPane x:Name="MyPane" Header="Results" IsTabStop="False" CanUserClose="False" PaneHeaderVisibility="Hidden">

<Grid Name="MyGrid">

<controls:Legend Name="Legend"></controls:Legend>

</Grid>

</controls:MyPane>

</telerik:RadPaneGroup>

</telerik:RadSplitContainer>

 

Here is a link to an image of the bar I need to hide: https://www.dropbox.com/s/13uffe6ibajm8mr/RadPaneIssue.png?dl=0

 

Thanks.

0
Dinko
Telerik team
answered on 30 Jul 2018, 08:12 AM
Hello Emery,

When the RadPane is in a floating state it is placed inside a ToolWindow. The header of the ToolWindow can't be removed out of the box. What you can do is to extract and edit the default control template of out ToolWindow. You can take a look at the Editing Control Templates help article which describes how to get the default template of the control. Looking at the provided picture I am assuming that you are using the Fluent theme. In this case, you can manually extract the ToolWindow template as suggested in the first second of the mentioned article.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Docking
Asked by
Emery
Top achievements
Rank 1
Answers by
Emery
Top achievements
Rank 1
Dinko
Telerik team
Share this question
or