Skip to content

Cannot modify ContentDialog parameters in winui 2.6 prelease #4247

@lhak

Description

@lhak

Describe the bug

When setting the Version parameter of the XamlControlsResources object to "latest", it is no longer possible to modify the ContentDialog style

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Create a new winui 2.6 app and change the version to "latest"
  2. Add a ContentDialog to the project
  3. Try to modify its padding by changing it in the resources section:
<ContentDialog.Resources>
   <Thickness x:Key="ContentDialogPadding">0</Thickness>
</ContentDialog.Resources>
  1. Observe that the padding does not change

Expected behavior

Padding should change

Screenshots

Version Info

NuGet package version:

[Microsoft.UI.Xaml.2.6.0-prerelease.210217002]

Windows app type:

UWP Win32
Yes
Windows 10 version Saw the problem?
Insider Build (xxxxx)
October 2020 Update (19042) Yes
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions