How do I change transparancy/opacity on just the header

9 posts, 0 answers
  1. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 03 Aug 2010 Link to this post

    I have been asked to make the header of a RadWindow transparant but this should not affect the content, how can I do this?

    I am using VS2010/SL4/.Net4, Windows server 2003, 7014 build of telerik controls for SL.
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 05 Aug 2010 Link to this post

    Hello Kjell,

    You can use a DataTemplate as a RadWindow.HeaderTemplate and set a background in that DataTemplate. Please check this article on RadWindow Header.

    Let me know if you need further guidance, I will be glad to help.

    Regards,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Dani
    Admin
    Dani avatar
    848 posts

    Posted 05 Aug 2010 Link to this post

    Hello Kjell,

    You can use a DataTemplate as a RadWindow.HeaderTemplate and set a background in that DataTemplate. Please check this article on RadWindow Header.

    Let me know if you need further guidance, I will be glad to help.

    Regards,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 05 Aug 2010 Link to this post

    Which article?
  6. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 05 Aug 2010 Link to this post

    I'm getting closer, tried this:

     

     

     

    <telerik:RadWindow.HeaderTemplate>

     

     

     

     

    <DataTemplate>

     

     

     

     

    <Border Background="Green">

     

     

     

     

    <TextBlock Text="Select Email Folders" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>

     

     

     

     

    </Border>

     

     

     

     

    </DataTemplate>

     

     

     

     

    </telerik:RadWindow.HeaderTemplate>

     



    I am using green just so I can see it easier in the designer, but it only covers there the text is, not the entire header width or the window border.
  7. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 05 Aug 2010 Link to this post

    Ok got another step closer by setting borderbrush and borderbackground, still need to figure out how to get my background across the entire header.
  8. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 05 Aug 2010 Link to this post

    I tried going another route and editing the template in Blend (which I was trying to avoid), but even there the transparancy settings only seem to work if I set the opacity for the entire control. 
  9. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 05 Aug 2010 Link to this post

    Ok this might be a hack but for now I'm just hardcoding the theme to "Transparant", this does what I need.
  10. Dani
    Admin
    Dani avatar
    848 posts

    Posted 06 Aug 2010 Link to this post

    Hi Kjell,

    I'm glad to hear you found a way to accomplish what you need. I am sorry for the missed hyperlink. I was referring to this article.

    Regards,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner