Create a style for use as a FocusVisualStyle on a control.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Page.Resources> <Style x:Key="MyFocusVisual"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <Rectangle Margin="-2" StrokeThickness="1" Stroke="Red" StrokeDashArray="1 2"/> </ControlTemplate> </Setter.Value> </Setter> </Style> </Page.Resources> <StackPanel Background="Ivory" Orientation="Horizontal"> <Button Width="100" Height="30" FocusVisualStyle="{DynamicResource MyFocusVisual}"> Focus Here</Button> </StackPanel> </Page>