Change background color of modal RadWindow (WPF)

8 posts, 0 answers
  1. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 14 Dec 2011 Link to this post

    Hi,

    Is there any way to change the background color of modal RadWindow to make them looks like the standard ChildWindow that exists in Silverlight ?

    After looking for that info on the forums, it seems it's possible in Silverlight and WPF (XBAP) but not in "normal" WPF....

    Any ideas on how to fix this ? Any workaround ?

    Thanks !
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 16 Dec 2011 Link to this post

    Hello Thomas,

    You are right - ModalBackground of RadWindow is supported for Silverlight and XBAP applications only.

    We are sorry, but currently there is no available workaround to this behavior.

    Kind regards,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tarik
    Tarik avatar
    12 posts
    Member since:
    May 2015

    Posted 13 Jun 2015 Link to this post

    Hi,
    Is there any solution for this limitation in the new versions ?!! 
    Thanks !

  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 17 Jun 2015 Link to this post

    Hi Tarik,

    The modal Windows in WPF don't have modal background and this is a framework behavior. The ModalBackground property of RadWindow is only supported for Silverlight and XBAP applications.

    If you have any other questions, please let us know.

    Regards,
    Kalin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  6. Tarik
    Tarik avatar
    12 posts
    Member since:
    May 2015

    Posted 07 Jul 2015 Link to this post

    Is there any way to turnaround, and apply a modal background to RadWindows ?

    tks!

  7. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 08 Jul 2015 Link to this post

    Hi Tarik,

    The closest possible suggestion would be to manually toggle the visibility of a Border with the desired color and opacity inside your application Window (just wrap the content with the Border) once the dialog is shown/closed.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  8. Tarik
    Tarik avatar
    12 posts
    Member since:
    May 2015

    Posted 22 Jul 2015 in reply to Kalin Link to this post

    Can you please present us a sample WPF MVVM code that can do this ?

    Tks!

  9. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 24 Jul 2015 Link to this post

    Hi Tarik,

    Please check the attached sample project that demonstrates one approach to achieve our suggestion.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for WPF is Visual Studio 2017 Ready