Skip to content

[WIP] Allow focus on disabled controls - #7783

Open
batzen wants to merge 1 commit into
dotnet:mainfrom
batzen:features/FocusOnDisabled
Open

batzen wants to merge 1 commit into
dotnet:mainfrom
batzen:features/FocusOnDisabled

Conversation

@batzen

@batzen batzen commented Apr 29, 2023 •

Copy link
Copy Markdown
Contributor

This is the first draft for #7749.

I also added new extensions to streamline focusable checks, but didn't use it yet.
Would be nice if I could get feedback on that one.

I tried to add the new property to IInputElement but the compat checks didn't pass and I found no way to make them pass.
Is there any documentation on how to add new interface members etc.?

Microsoft Reviewers: Open in CodeFlow

@batzen
batzen requested a review from a team as a code owner April 29, 2023 08:51
@ghost ghost assigned batzen Apr 29, 2023
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Apr 29, 2023
@ghost
ghost requested review from dipeshmsft and singhashish-wpf April 29, 2023 08:51
@ghost ghost added Community Contribution A label for all community Contributions 📭 waiting-author-feedback To request more information from author. labels Apr 29, 2023
@batzen batzen removed the 📭 waiting-author-feedback To request more information from author. label May 3, 2023
@miloush

miloush commented Jun 11, 2023

Copy link
Copy Markdown
Contributor

As for technical comments - why WhenNotEnabled rather than WhenDisabled? For the extensions I am not sure, first it's not great that they are properties exposed as methods and then CanFocus is bit ambiguous, is that keyboard focus or logical focus? Do you not need to check parents?

@batzen

batzen commented Nov 9, 2024

Copy link
Copy Markdown
Contributor Author

@harshit7962 any chance the WPF team could have a look at this?

@harshit7962

Copy link
Copy Markdown
Member

@batzen, we will include this in the next monthly test pass before proceeding with the review.

I tried to add the new property to IInputElement but the compat checks didn't pass and I found no way to make them pass.

Can you try using the the below build command, it should baseline the compat errors.
.\build.cmd -plat x64 /p:BaselineAllAPICompatError=true

@miloush

miloush commented Nov 11, 2024

Copy link
Copy Markdown
Contributor

Documented at https://github.com/dotnet/wpf/blob/main/Documentation/api-compat.md (you could have also manually edited the baseline file)

Test pass seems to be a bit premature, this should go through API review first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Change Community Contribution A label for all community Contributions 🚧 work in progress Included in test pass PR metadata: Label to tag PRs, to facilitate with triage Status:Cut

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants