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

telerik:HeaderedContentControl Style

4 Answers 253 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
h g
Top achievements
Rank 1
h g asked on 19 Jun 2010, 01:36 PM

I want to use telerik:HeaderedContentControl like what have been used in telerik silverlight demo,
in there the component has Style="{StaticResource DefaultHeaderedContentControlStyle}" so where can I found DefaultHeaderedContentControlStyle to use in my own code?

4 Answers, 1 is accepted

Sort by
0
h g
Top achievements
Rank 1
answered on 21 Jun 2010, 10:15 AM
Any suggestion?
0
Pana
Telerik team
answered on 22 Jun 2010, 08:37 AM
Hello,

It was in the Common Styles of the QSF (it is not in the example since it is shared with others). Its template has nothing more but a Grid with two Rows, two borders - one in each row and two ContentPresenters - again one in each row. One of the ContentPresenters has Content and ContentTemplate TemplateBound for the Header and HeaderTemplate the other has Content and ContentTemplate TemplateBound for the Content and ContentTemplate of the HeaderedContentControl. You can pretty much create your own from empty ControlTemplate.

Also it does not have themes since it is used as base class for things like RadMenuItem, RadWindow, RadTabItem etc.

All the best,
Panayot
the Telerik team
0
h g
Top achievements
Rank 1
answered on 22 Jun 2010, 09:06 AM
What about rounded corners?
0
Pana
Telerik team
answered on 22 Jun 2010, 09:44 AM
Hi,

You can get the xaml with reflector from the Telerik.Windows.Controls assembly. Check the *.swf (drag it in browser) video attached to see how the style was generated. The xaml resource dictionary with the HeaderedContentControl style is also attached.

Sincerely yours,
Panayot
the Telerik team
Tags
General Discussions
Asked by
h g
Top achievements
Rank 1
Answers by
h g
Top achievements
Rank 1
Pana
Telerik team
Share this question
or