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

Modal Background Color

2 Answers 136 Views
Window
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 26 Nov 2008, 09:30 PM
Hello,

This is probably simple and I am overlooking something. I am trying to achieve a modal background color of gray with an opacity of 50. I am trialing at the moment but I am using the latest available. I tried the color below but it seems to always give me a solid color

 

<telerikNavigation:RadWindow.ModalBackground>
    
<SolidColorBrush x:Key="DefaultModalBackground">
        
<SolidColorBrush.Opacity>50</SolidColorBrush.Opacity>
        
<SolidColorBrush.Color>Gray</SolidColorBrush.Color>
    </SolidColorBrush>
</telerikNavigation:RadWindow.ModalBackground>

 

TIA,
DVD

 

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 27 Nov 2008, 07:15 AM
Hi Dave,

The opacity property should be between 0 and 1.
Here is a example how you can set it:

<telerikNavigation:RadWindow.ModalBackground> 
    <SolidColorBrush Color="Green" Opacity="0.5" /> 
</telerikNavigation:RadWindow.ModalBackground> 

If you need more help, do not hesitate to contact us.


Sincerely yours,
Hristo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David
Top achievements
Rank 1
answered on 01 Dec 2008, 01:56 PM
Hristo,

Thanks for the information. Works perfectly now.

Sincerely,
DVD
Tags
Window
Asked by
David
Top achievements
Rank 1
Answers by
Hristo
Telerik team
David
Top achievements
Rank 1
Share this question
or