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

NavigationBackButtonNormalStyle is wrong when used directly #9536

Open
miksalmon opened this issue Apr 11, 2024 · 1 comment
Open

NavigationBackButtonNormalStyle is wrong when used directly #9536

miksalmon opened this issue Apr 11, 2024 · 1 comment
Labels
area-Navigation Frame, Page bug Something isn't working team-Controls Issue for the Controls team

Comments

@miksalmon
Copy link
Contributor

Describe the bug

Using NavigationBackButtonNormalStyle directly does not apply the correct style:

  • Corners are not rounded
  • Wrong font size
  • etc.

Repro app: https://github.com/miksalmon/NavigationBackButtonStyleIssue

Steps to reproduce the bug

  1. Create button
  2. Add style: Style="{StaticResource NavigationBackButtonNormalStyle}"

Expected behavior

Button should have the same style as NavigationView back button

Screenshots

using style directly: image
using copied style: image
expected: image

NuGet package version

None

Windows version

No response

Additional context

Copying the style from https://github.com/microsoft/microsoft-ui-xaml/blob/winui3/release/1.4-stable/controls/dev/NavigationView/NavigationBackButton.xaml locally applies the correct style as shown by the 2nd screenshot

@miksalmon miksalmon added the bug Something isn't working label Apr 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Apr 11, 2024
@codendone codendone added area-Navigation Frame, Page team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Apr 12, 2024
@MartinZikmund
Copy link
Contributor

I can confirm I'm seeing this issue as well, copying the style directly resolves the issue. It seems the correct style (from NavigationView control's styles) is overriden by the one in dxaml\xcp\dxaml\themes\generic.xaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Navigation Frame, Page bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants