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

Modal opacity for RadWindow

2 Answers 130 Views
Window
This is a migrated thread and some comments may be shown as answers.
Celeste
Top achievements
Rank 1
Celeste asked on 28 May 2009, 01:01 PM
Hi

Well, my problem is very simple.
I want to change the ModalBackground and I would like it was white with opacity 0.5.
I don´t know how to do it.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 29 May 2009, 02:44 PM
Hello Celeste,

You can change the modal background of the window by using the ModalBackground property. Below is the code you can use to set different background colors and Opacity to the modal background.

           RadWindow window3 = new RadWindow(); 
            Color myColor = Color.FromArgb(255, 255, 255, 255); 
            SolidColorBrush myBrush = new SolidColorBrush(); 
            myBrush.Color = myColor; 
            SolidColorBrush solid = new SolidColorBrush(myColor); 
            solid.Opacity = 0.5; 
            window3.ModalBackground = solid; 
            window3.ShowDialog(); 

You can also see this topic for more details. 

Hope that helps. If you need more help please let me know.

Kind regards,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Celeste
Top achievements
Rank 1
answered on 29 May 2009, 03:07 PM
Thanks Boyan. I´m new in Silverlight and I didn´t think that solution.
Now it looks like I wanted.

Thanks again
Tags
Window
Asked by
Celeste
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Celeste
Top achievements
Rank 1
Share this question
or