Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restyling controls on WinUI3 #5098

Open
three-cups opened this issue Aug 8, 2024 · 0 comments
Open

restyling controls on WinUI3 #5098

three-cups opened this issue Aug 8, 2024 · 0 comments
Assignees

Comments

@three-cups
Copy link

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

@jwmsft

Document Id

a0995d55-f5b2-c341-aeb2-36aa3effea0b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants