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

How can I remove Header bar

6 Answers 175 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 29 Sep 2009, 05:58 PM
On a few panes, I have 

CanFloat

 

="False" CanUserClose="False" CanUserPin="False"

 


On those, I don't want the Grey Header bar with the triangle on the right as it is useless.

How can I turn that off or hide it.


I've copied and pasted the xaml from here.
http://demos.telerik.com/silverlight/#Docking/SplitContainers

6 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 30 Sep 2009, 12:57 PM
Hi Casey,

You can remove the header by changing the control template of the RadPaneGroup. If you just want to remove the menu (with the triangle icon) you could remove all the menu items from the MenuCommands collection of each RadPane control that doesn't need a menu.

Please, notice that if you decide to use the first approach you need to create a custom theme and to set it to the Docking control, because the pane groups are created dynamically when you drag and drop panes.

If you have further questions don't hesitate to ask.

Greetings,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Casey
Top achievements
Rank 1
answered on 30 Sep 2009, 01:31 PM
Thanks
0
Casey
Top achievements
Rank 1
answered on 20 Oct 2009, 08:26 PM

Editing the HeaderTemplate as you suggested has not worked for us yet.


When we create a copy of the Template using Blend, the template does not contain anything other than the primary control, and visual states, thus we are unable to actually override the pieces of the template.


We aren't sure which template contains the pin,close and docking options... It's the Header Grey bar with the black triangle that we are trying to hide.

 

We have the following choices for templates that contain headers: Bottom, Top, Left, Right, and DocumentHost. 

 


We did try setting the VisualState and that doesn’t seem to do anything either.

VisualStateManager.GoToState(LeftPaneControlGroup, "PaneHeaderHidden", false);

0
Miroslav Nedyalkov
Telerik team
answered on 21 Oct 2009, 11:04 AM
Hi Casey,

The the gray control that highlights when you focus the pane is called PaneHeader and the templates that contain this control are all the templates except DocumentHostTemplate.

If you have further questions, don't hesitate to ask.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Casey
Top achievements
Rank 1
answered on 21 Oct 2009, 05:37 PM
We are not able to get into those templates.. We cannot edit them.

And just to make sure we are talking about the same thing.. See the attached picture showing what we want to hide.

casey
0
Miroslav Nedyalkov
Telerik team
answered on 22 Oct 2009, 11:33 AM
Hi Casey,

Yes, this is the control I'm talking about. The attached project demonstrates how to remove this header from all pane groups in the Docking control.

Sincerely yours,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
Casey
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Casey
Top achievements
Rank 1
Share this question
or