Try it for the Focusable = "False" control set. Example:
<Grid Focusable="False"> ... </Grid>
Or configure Style for yourself:
<Grid FocusVisualStyle="{x:Null}" />
In addition, the Style focus can be:
<Style x:Key="MyItemFocusVisual" TargetType="{x:Type Control}"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Control}"> <Border SnapsToDevicePixels="True" CornerRadius="0" BorderThickness="5" BorderBrush="#7B2F81" /> </ControlTemplate> </Setter.Value> </Setter> </Style>
Using:
<Grid Focusable="True" FocusVisualStyle="{StaticResource MyItemFocusVisual}" ... />
Output

source share