Skip to content

restyling controls on WinUI3 #5098

Description

@three-cups

Type of issue

Missing information

Feedback

I'm developing on WinUI3, and trying to restyling button control.

Document says

For WinUI 2 controls (Microsoft.UI.Xaml.Controls namespace), the default style is defined in the metadata, so omit BasedOn.

Currently using Button control is in namespace
Microsoft.UI.Xaml.Controls.Button is UinUI 2 controls, right?
and button appearance is different between write BasedOn or omit.

image
BasedOn ... button corner is rounded.

image
omit ... button corner is not rounded.

what is the better way to restyling controls?
or is there document for WinUI3?

Page URL

https://learn.microsoft.com/en-us/windows/apps/design/style/xaml-styles#apply-an-implicit-or-explicit-style

Content source URL

https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/design/style/xaml-styles.md

Author

Jim Walker (@jwmsft)

Document Id

a0995d55-f5b2-c341-aeb2-36aa3effea0b

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions