I'm using the default MAUI application generated by Visual Studio as a starting point. I have added custom focus borders for VisualState Focused and it works fine when focusing with the mouse. However, when navigating the form with Tab key, the default black frame appears around the focused buttons.
Some WinUI articles suggest that UseSystemFocusVisuals should work. So I have done the following in my App.xaml in Windows folder:
<maui:MauiWinUIApplication.Resources>
<x:Boolean x:Key="UseSystemFocusVisuals">False</x:Boolean>
<Thickness x:Key="TextControlBorderThemeThickness">0</Thickness>
<Thickness x:Key="TextControlBorderThemeThicknessFocused">0</Thickness>
</maui:MauiWinUIApplication.Resources>
Unfortunately, it did not work on Buttons. However, at least the TextControl settings worked for Entry elements. So, in general, the Resources section is being applied, it's just that UseSystemFocusVisuals seems to have no effect on Button controls. Checkboxes and radios have the same problem.
How do I get rid of these globally, without extending all the controls?
