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

How do I change transparancy/opacity on just the header

8 Answers 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 03 Aug 2010, 09:44 PM
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.

8 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 05 Aug 2010, 07:42 AM
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
0
Dani
Telerik team
answered on 05 Aug 2010, 07:43 AM
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
0
Kjell
Top achievements
Rank 1
answered on 05 Aug 2010, 04:56 PM
Which article?
0
Kjell
Top achievements
Rank 1
answered on 05 Aug 2010, 05:23 PM
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.
0
Kjell
Top achievements
Rank 1
answered on 05 Aug 2010, 05:30 PM
Ok got another step closer by setting borderbrush and borderbackground, still need to figure out how to get my background across the entire header.
0
Kjell
Top achievements
Rank 1
answered on 05 Aug 2010, 06:43 PM
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. 
0
Kjell
Top achievements
Rank 1
answered on 05 Aug 2010, 06:57 PM
Ok this might be a hack but for now I'm just hardcoding the theme to "Transparant", this does what I need.
0
Dani
Telerik team
answered on 06 Aug 2010, 11:22 AM
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
Tags
Window
Asked by
Kjell
Top achievements
Rank 1
Answers by
Dani
Telerik team
Kjell
Top achievements
Rank 1
Share this question
or