[Mac Catalyst] Setting CancelButtonColor on SearchBar has no effect when using Mac Idiom #18110
Labels
legacy-area-controls
Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
partner/cat 😻
Client CAT Team
partner
Issue or Request from a partner team
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Milestone
Description
When adopting the Mac Idiom for a Mac Catalyst app, setting the
CancelButtonColor
on the SearchBar does not change the color of the cancel button.Steps to Reproduce
Create a File > New .NET MAUI app
Specify the use of Mac Idiom as per the Specify the UI idiom for your Mac Catalyst app documentation
Update the templated
MainPage.xaml
to include a SearchBar and explicitly set theCancelButtonColor
toRed
. For example:Expected
The color of the cancel button is
Red
.Actual
The color of the cancel button is not updated (default still applies).
Link to public reproduction project repository
No response
Version with bug
7.0.96
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
Ventura 13.6
Did you find any workaround?
Append to mapping to set the (UISearchBar)
TintColor
value based on the virtual viewCancelButtonColor
value.Relevant log output
No response
The text was updated successfully, but these errors were encountered: