telerik:HeaderedContentControl Style

5 posts, 0 answers
  1. h g
    h g avatar
    11 posts
    Member since:
    Apr 2010

    Posted 19 Jun 2010 Link to this post


    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?
  2. h g
    h g avatar
    11 posts
    Member since:
    Apr 2010

    Posted 21 Jun 2010 Link to this post

    Any suggestion?
  3. Pana
    Admin
    Pana avatar
    748 posts

    Posted 22 Jun 2010 Link to this post

    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
  4. h g
    h g avatar
    11 posts
    Member since:
    Apr 2010

    Posted 22 Jun 2010 Link to this post

    What about rounded corners?
  5. Pana
    Admin
    Pana avatar
    748 posts

    Posted 22 Jun 2010 Link to this post

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