Open sonnemaf opened 2 years ago
Very strange... the button does have the correct "DefaultButtonStyle" from winui2, you can tell from the bottom edge border being a bit darker, but the corner radius value lookup seems to have failed... @MikeHillberg or @jevansaks ring any bells?
Describe the bug
The rounded corners of a Button are removed when a
Button
has aStyle
(for example theAccentButtonStyle
) and you remove it by setting theStyle
property to `null'.Steps to reproduce the bug
Create a new UWP project and add Microsoft.UI.Xaml NuGet package.
Add the following code to the MainPage.xaml
Run the app and click
Button 1
Expected behavior
The
Button 2
should have rounded cornersScreenshots
The app starts like this.
If you click
Button 1
the rounded corners are removed fromButton 2
.NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type
Device form factor
Desktop
Windows version
No response
Additional context
No response