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

Styling AutoHideArea Control Problem

2 Answers 66 Views
Docking
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 16 Aug 2009, 09:21 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 19 Aug 2009, 02:26 PM
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.
0
James
Top achievements
Rank 1
answered on 20 Aug 2009, 06:19 AM
Brilliant, thanks for the explanation.

Regards,

James.
Tags
Docking
Asked by
James
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
James
Top achievements
Rank 1
Share this question
or