Modal opacity for RadWindow

3 posts, 1 answers
  1. Celeste
    Celeste avatar
    34 posts
    Member since:
    May 2009

    Posted 28 May 2009 Link to this post

    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. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 29 May 2009 Link to this post

    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.
  3. DevCraft banner
  4. Celeste
    Celeste avatar
    34 posts
    Member since:
    May 2009

    Posted 29 May 2009 Link to this post

    Thanks Boyan. I´m new in Silverlight and I didn´t think that solution.
    Now it looks like I wanted.

    Thanks again
Back to Top