Skip to content

When color theme is used, ContentDialog covers the whole page #46

@under3415

Description

@under3415

Steps to replicate:

  1. Create new UWP app
  2. Grab a color scheme from Fluent XAML Theme Editor and add it to your project
  3. In App.Xaml add this:
     <Application.Resources>
      <ResourceDictionary>
       <ResourceDictionary.MergedDictionaries>
           <ResourceDictionary Source="Dictionary1.xaml"/>
      </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>
    </Application.Resources>
  1. Add a TextBlock and Loaded event to MainPage
  2. Add ContentDialog call to Loaded event
   private async void Page_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            ContentDialog noWifiDialog = new ContentDialog
            {
                Title = "No wifi connection",
                Content = "Check your connection and try again.",
                CloseButtonText = "Ok"
            };

            _ = await noWifiDialog.ShowAsync();
        }
  1. Run the app and see how ContentDialog covers up the TextBlock. If you remove the color theme this does not happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions