Remove background ContentDialog UWP

Anderson Rodrigues Cavalcante 171 Reputation points

Hi, I'm trying to remove the opacity of the background behind the Content Dialog. How can I do that? See the Button and Text are with opacity because the Content Dialog.

User's image

Universal Windows Platform (UWP)
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,009 questions
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
691 questions
0 comments No comments
{count} votes

Accepted answer
  1. Junjie Zhu - MSFT 9,751 Reputation points Microsoft Vendor

    Hello @Anderson Rodrigues Cavalcante , Welcome to Microsoft Q&A!

    You can modify the key resource SystemControlPageBackgroundMediumAltMediumBrush and modify the first two digits of the color "#FFFFFFFF" to change the transparency.

                    <ResourceDictionary x:Key="Default">
                        <SolidColorBrush x:Key="SystemControlPageBackgroundMediumAltMediumBrush" Color="#FFFFFFFF" />
                    <ResourceDictionary x:Key="Dark">
                        <SolidColorBrush x:Key="SystemControlPageBackgroundMediumAltMediumBrush" Color="#FF000000" />

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful