Skip to content

Introduce AP to control IsTabStop of the reveal button in PasswordBox (reveal style) #3800

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

Merged
merged 4 commits into from
Feb 28, 2025

Conversation

nicolaihenriksen
Copy link
Contributor

Fixes #3799

As mentioned in the issue/feature request, I have been unsuccessful at trying to fix this by simply overriding a style (in particular the MaterialDesignRawToggleButton style). I believe this has become somewhat more difficult after we decided to move the "internal styles" out of the root-level ResourceDictionary and closer to where they are used.

In this particular case, the style is nested under the <ControlTemplate.Resources> and thus I am unsure how I can override that as a MDIX consumer without overriding the entire template. I did try to move the inner style one level out so it resides in the <Style.Resources> instead; however even with that in place, I still struggled to override it.

This PR introduces an AP which allows the caller to control it.

I added a UI test mainly for the purpose of playing around with various ways of getting it to work, but in the end I could only get the AP approach to work 😞

Without AP

PasswordBoxFocusIssue

With AP (set to False)

PasswordBoxFocusIssueFixed

@nicolaihenriksen nicolaihenriksen added this to the 5.3.0 milestone Feb 25, 2025
@Keboo Keboo enabled auto-merge (squash) February 28, 2025 05:09
@Keboo Keboo merged commit 6ae4ff6 into master Feb 28, 2025
2 checks passed
@Keboo Keboo deleted the fix3799 branch February 28, 2025 05:24
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

Successfully merging this pull request may close these issues.

Controlling IsTabStop of reveal button in PasswordBox (reveal style)
2 participants