Skip to content

Unseal the PasswordBox to allow it to be extended with, for example, a clear button.#8005

Open
pomianowski wants to merge 2 commits intodotnet:mainfrom
pomianowski:bugfix/passwordbox
Open

Unseal the PasswordBox to allow it to be extended with, for example, a clear button.#8005
pomianowski wants to merge 2 commits intodotnet:mainfrom
pomianowski:bugfix/passwordbox

Conversation

@pomianowski
Copy link
Contributor

@pomianowski pomianowski commented Jul 8, 2023

Description

The change is intended to open up the PasswordBox API and allow the creation of derived classes. I believe that an openly accessible control should not be sealed. In this situation, we either have to rewrite the entire PasswordBox or use other tricks instead of conveniently creating a derived class.

Customer Impact

Until now, it is unlikely that anyone has created derived classes, so we are opening up opportunities rather than taking them away.

Regression

Not applicable

Testing

PR build

Risk

Changing the behavior of PasswordBox by, for example, adding OnPasswordChanged(e) can be risky because of how users use the control so far.

Microsoft Reviewers: Open in CodeFlow

@pomianowski pomianowski requested a review from a team as a code owner July 8, 2023 08:01
@ghost ghost assigned pomianowski Jul 8, 2023
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jul 8, 2023
@ghost ghost requested a review from dipeshmsft July 8, 2023 08:02
@pomianowski pomianowski changed the title Unseal the PasswordBox to to allow it to be extended with, for example, a clear button. Unseal the PasswordBox to allow it to be extended with, for example, a clear button. Jul 8, 2023
@ghost ghost requested a review from singhashish-wpf July 8, 2023 08:02
@ghost ghost added the Community Contribution A label for all community Contributions label Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant