-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Windows] Implement SearchBar CancelButtonColor on Windows #13622
Conversation
var searchBarHandler = CreateHandler(searchBar); | ||
await searchBarHandler.PlatformView.AttachAndRun(async () => | ||
{ | ||
await AssertionExtensions.Wait(() => searchBarHandler.PlatformView.FocusState != UI.Xaml.FocusState.Unfocused); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm... what is the reason for checking this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CancelButton
only appears when the SearchBar has text and the focus. For that reason, here, we wait until be sure that the native control is focused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a small question about a line in the tests, but otherwise LGTM! happy colors :)
@PureWeen Could I get your feedback here?. Thanks! |
@rmarinho You should also remove this line, or at least the reference to this now closed issue:
|
Description of Change
Implement SearchBar CancelButtonColor on Windows. Checking new issues and adding label, I've seen that 13507 happens basically because it's not implemented. This PR implement the changes in the CancelButtonColor proprerty.
To validate the changes cacn use the SearchBar sample from the .NET MAUI Gallery or the added tests.
Issues Fixed
Fixes #13507