Use regular resource lookup for FocusVisualStyle#1165
Use regular resource lookup for FocusVisualStyle#1165singhashish-wpf merged 4 commits intodotnet:mainfrom
Conversation
|
@batzen Thank you and I pick your code to my custom wpf repo. |
|
@dotnet/wpf-developers any news on this one? |
There was a problem hiding this comment.
Nice! Could you update your PR to use the template, this PR was probably opened before the template was added but the WPF team will probably want to know a couple of things in the template to consider whether or not to merge this PR, like "Testing" and "Risk".
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs
Outdated
Show resolved
Hide resolved
To be honest, i don't understand why i should do that after waiting for 3 years to get any feedback... |
…ows/Input/KeyboardNavigation.cs Co-authored-by: ThomasGoulet73 <51839772+ThomasGoulet73@users.noreply.github.com>
…ows/Input/KeyboardNavigation.cs Co-authored-by: ThomasGoulet73 <51839772+ThomasGoulet73@users.noreply.github.com>
That's true but I'm just trying to anticipate comments that the WPF team might have to avoid back and forth which would delay this PR. |
|
|
@lindexi thanks, but I was already aware of that repo. The question was more like "were can i find the existing tests for FocusVisual?". As a search in the test repo didn't yield any results. |
|
@batzen LoL, it is seems the test repo is slowly too. |
|
@batzen I reorganized my custom wpf test repo and pick your code. Thank you. |
|
This PR will be taken in the next community test pass. |
This fixes #1164
Description
Because
KeyboardNavigationusesSystemResources.FindResourceInternalinstead ofFrameworkElement.FindResourceInternalthe defaultFocusVisualStylecan't be overwritten globally.Customer Impact
Fixes a regression.
Regression
Yes.
Testing
Where can i add tests for this?
Risk
Low. Adds ability to overwrite
FocusVisualStyle.