Styling AutoHideArea Control Problem

3 posts, 1 answers
  1. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 16 Aug 2009 Link to this post

    Hello,

    I'm attempting to apply my own style to the AutoHideArea control but I'm unsure how to apply a style or template to each item within the TabStripPanel control.

    So within each template (left,right,top,bottom) there is this line of Xaml where the items get displayed:

    <ItemsPresenter x:Name="ItemsPresenterElement" Margin="3 4 2 15" /> 

    How do I explicitly apply a style or control template to each item?

    I have tried applying a RadTabItem style against the ItemContainerStyle property but this did not work (i.e. the style applied was ignored).

    Cheers,

    James.

     

  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 19 Aug 2009 Link to this post

    Hello James,

    If I understand you correctly you need to change the appearance of the Pane when in AutoHide area. Unfortunately it is not fully supported by the Docking control. It shares common control templates for the bottom AutoHide area and when the pane is pinned and not in the DocumentHost area. If this is ok for you, what you need to do is to change the following properties of the RadPane control: TopTemplate, BottomTemplate, LeftTemplate, RightTemplate. They are all applied automatically when the pane is moved.

    If you need to change the appearance only when the pane is in AutoHide area, the situation is far more complex, because the BottomTemplate property is used in both - in the bottom AutoHide are and in any PaneGroup that is not in the DocumentHost area.

    Hope this information is helpful. 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.
    Check out the tips for optimizing your support resource searches.
  3. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 20 Aug 2009 Link to this post

    Brilliant, thanks for the explanation.

    Regards,

    James.
Back to Top