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

Styling ToolWindow

2 Answers 76 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ido
Top achievements
Rank 1
Ido asked on 26 Jul 2009, 01:14 PM
Hi,

I'm working on re-styling the dock panel to support RTL, and I'm having problem with styling the ToolWindow control.

As for DockPanel, RadPane and RadPaneGroup, we use each of them in our XAML, so there's no problem changing the "style" property and applying our own style, but there's not place I can set the style of the ToolWindow - I don't use it directly and I can't find the event in the dock/pane/group that exposes a newly created ToolWindow (for example - when I make a docked pane float) so I can change its style.

Is there any way I can change the style of a ToolWindow ? A special event I can catch?

Thanks,
Ido.

2 Answers, 1 is accepted

Sort by
0
Ido
Top achievements
Rank 1
answered on 26 Jul 2009, 03:05 PM
Update on the question :

I've been able to catch the creation of the ToolWindow using the RadPane's SizeChange event, which I catch and seek after a ToolWindow parent - if one is found I update its style to the RTL style.

In that event I also seek out the newly created PaneGroup because it also is created and needs to be applied a style.

But ... I have a new problem - One option for size changed is pinning the pane, which creates a AutoHideArea - this too has a styling that needs to be updated, but once I set the style property, I get a "catastrophic failure" exception, of unknown origin. I've even tried setting the style to the actual style (copied the style from the generic.xaml), and that too caused an exception.

I've also tried setting specific right/left/top/bottom templates, but none worked (all throw exceptions).

Is there a special treat for AutoHideArea? the ToolWindow and PaneGroup styling works just fine from the SizeChanged event.

Any help would be appreciated.

Ido.
0
Miroslav Nedyalkov
Telerik team
answered on 29 Jul 2009, 09:31 AM
Hello Ido,

As you already noticed the PaneGroups and ToolWindows are created dynamically, so you'd better use custom theme instead to set each style separately and to handle SizeChange events and etc.

Could you please try this approach and if you still have this problem write us again?

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Docking
Asked by
Ido
Top achievements
Rank 1
Answers by
Ido
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or