How can I remove Header bar

7 posts, 0 answers
  1. Casey
    Casey avatar
    27 posts
    Member since:
    May 2009

    Posted 29 Sep 2009 Link to this post

    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
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Sep 2009 Link to this post

    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.
  3. Casey
    Casey avatar
    27 posts
    Member since:
    May 2009

    Posted 30 Sep 2009 Link to this post

    Thanks
  4. Casey
    Casey avatar
    27 posts
    Member since:
    May 2009

    Posted 20 Oct 2009 Link to this post

    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);

  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Oct 2009 Link to this post

    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.
  6. Casey
    Casey avatar
    27 posts
    Member since:
    May 2009

    Posted 21 Oct 2009 Link to this post

    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
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Oct 2009 Link to this post

    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.
Back to Top