title: How do i change background color of silverlight expander?
body: <p>I want to change background color of the Silverlight expander.</p>
  
  <p>It look like as follows. </p>
  
  <p><img src="https://i.stack.imgur.com/zrZ4O.png" alt="enter image description here"></p>
  
  <p><strong>How do I edit following template to set background color to white??</strong></p>
  
  <p><strong>What property of Expander will do I set to change background color of the Expander.
  and its XAML code is as follows.</strong></p>
  
  <pre><code>  &lt;Style x:Key="MyExpanderStyle" TargetType="controlsToolkit:Expander"&gt;
          &lt;Setter Property="ExpandDirection" Value="Down"&gt;&lt;/Setter&gt;
          &lt;Setter Property="IsEnabled" Value="True"&gt;&lt;/Setter&gt;
          &lt;Setter Property="Width" Value="Auto"&gt;&lt;/Setter&gt;
          &lt;Setter Property="Height" Value="Auto"&gt;&lt;/Setter&gt;
          &lt;Setter Property="HorizontalAlignment" Value="Left"&gt;&lt;/Setter&gt;
          &lt;Setter Property="Margin" Value="0,10,0,3"&gt;&lt;/Setter&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="controlsToolkit:Expander"&gt;
                      &lt;Grid Background="Transparent"&gt;
                          &lt;Grid.Resources&gt;
                              &lt;LinearGradientBrush x:Key="ExpanderArrowFill" EndPoint="0,1" StartPoint="0,0"&gt;
                                  &lt;GradientStop Color="#0098D4" Offset="0"/&gt;
                                  &lt;GradientStop Color="#0098D4" Offset="0.5"/&gt;
                                  &lt;GradientStop Color="#0098D4" Offset="1"/&gt;
                              &lt;/LinearGradientBrush&gt;
                              &lt;LinearGradientBrush x:Key="ExpanderArrowHoverFill" EndPoint="0,1" StartPoint="0,0"&gt;
                                  &lt;GradientStop Color="#FFF0F8FE" Offset="0"/&gt;
                                  &lt;GradientStop Color="#FFE0F3FE" Offset="0.3"/&gt;
                                  &lt;GradientStop Color="#FF6FA7C5" Offset="1"/&gt;
                              &lt;/LinearGradientBrush&gt;
                              &lt;LinearGradientBrush x:Key="ExpanderArrowPressedFill" EndPoint="0,1" StartPoint="0,0"&gt;
                                  &lt;GradientStop Color="#FFDCF0FA" Offset="0"/&gt;
                                  &lt;GradientStop Color="#FFC5E6F7" Offset="0.2"/&gt;
                                  &lt;GradientStop Color="#FF5690D0" Offset="1"/&gt;
                              &lt;/LinearGradientBrush&gt;
                              &lt;ControlTemplate x:Key="ExpanderDownHeaderTemplate" TargetType="ToggleButton"&gt;
                                  &lt;Grid Background="Transparent"&gt;
                                      &lt;VisualStateManager.VisualStateGroups&gt;
                                          &lt;VisualStateGroup x:Name="CheckStates"&gt;
                                              &lt;VisualStateGroup.Transitions&gt;
                                                  &lt;VisualTransition GeneratedDuration="00:00:00"/&gt;
                                              &lt;/VisualStateGroup.Transitions&gt;
                                              &lt;VisualState x:Name="Checked"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="arrow" Storyboard.TargetProperty="Data"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="M 1,4.5 L 4.5,1 L 8,4.5"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                              &lt;VisualState x:Name="Unchecked"/&gt;
                                          &lt;/VisualStateGroup&gt;
                                          &lt;VisualStateGroup x:Name="CommonStates"&gt;
                                              &lt;VisualStateGroup.Transitions&gt;
                                                  &lt;VisualTransition GeneratedDuration="0"/&gt;
                                                  &lt;VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver"/&gt;
                                                  &lt;VisualTransition GeneratedDuration="00:00:00.1" To="Pressed"/&gt;
                                              &lt;/VisualStateGroup.Transitions&gt;
                                              &lt;VisualState x:Name="Normal"/&gt;
                                              &lt;VisualState x:Name="MouseOver"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Stroke).(SolidColorBrush.Color)" To="#FF3C7FB1"/&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Fill)"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ExpanderArrowHoverFill}"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="arrow" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#222"/&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                              &lt;VisualState x:Name="Pressed"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Stroke).(SolidColorBrush.Color)" To="# "/&gt;
                                                      &lt;DoubleAnimation BeginTime="0" Storyboard.TargetName="circle" Storyboard.TargetProperty="StrokeThickness" To="1.5"/&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Fill)"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ExpanderArrowPressedFill}"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="arrow" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#FF003366"/&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                          &lt;/VisualStateGroup&gt;
                                          &lt;VisualStateGroup x:Name="FocusStates"&gt;
                                              &lt;VisualState x:Name="Focused"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                              &lt;VisualState x:Name="Unfocused"/&gt;
                                          &lt;/VisualStateGroup&gt;
                                      &lt;/VisualStateManager.VisualStateGroups&gt;
                                      &lt;Border Padding="{TemplateBinding Padding}"&gt;
                                          &lt;Grid Background="Transparent"&gt;
                                              &lt;Grid.ColumnDefinitions&gt;
                                                  &lt;ColumnDefinition Width="15"/&gt;
                                                  &lt;ColumnDefinition Width="*"/&gt;
                                              &lt;/Grid.ColumnDefinitions&gt;
                                              &lt;Grid HorizontalAlignment="Left" VerticalAlignment="Top"&gt;
                                                  &lt;Ellipse x:Name="circle" Fill="{StaticResource ExpanderArrowFill}" Stroke="Transparent" Height="15" HorizontalAlignment="Center" VerticalAlignment="Center" Width="15"/&gt;
                                                  &lt;Path x:Name="arrow" Stroke="White" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 1,1.5 L 4.5,5 L 8,1.5"/&gt;
                                              &lt;/Grid&gt;
                                              &lt;ContentPresenter x:Name="header" HorizontalAlignment="Stretch" Margin="4,0,0,0" VerticalAlignment="Center" Grid.Column="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/&gt;
                                          &lt;/Grid&gt;
                                      &lt;/Border&gt;
                                      &lt;Rectangle x:Name="FocusVisualElement" Stroke="#FF448DCA" StrokeThickness="1" IsHitTestVisible="false" Visibility="Collapsed"/&gt;
                                  &lt;/Grid&gt;
                              &lt;/ControlTemplate&gt;
                              &lt;ControlTemplate x:Key="ExpanderUpHeaderTemplate" TargetType="ToggleButton"&gt;
                                  &lt;Grid Background="Transparent"&gt;
                                      &lt;VisualStateManager.VisualStateGroups&gt;
                                          &lt;VisualStateGroup x:Name="CheckStates"&gt;
                                              &lt;VisualStateGroup.Transitions&gt;
                                                  &lt;VisualTransition GeneratedDuration="00:00:00"/&gt;
                                              &lt;/VisualStateGroup.Transitions&gt;
                                              &lt;VisualState x:Name="Checked"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="arrow" Storyboard.TargetProperty="Data"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="M 1,4.5 L 4.5,1 L 8,4.5"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                              &lt;VisualState x:Name="Unchecked"/&gt;
                                          &lt;/VisualStateGroup&gt;
                                          &lt;VisualStateGroup x:Name="CommonStates"&gt;
                                              &lt;VisualStateGroup.Transitions&gt;
                                                  &lt;VisualTransition GeneratedDuration="0"/&gt;
                                                  &lt;VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver"/&gt;
                                                  &lt;VisualTransition GeneratedDuration="00:00:00.1" To="Pressed"/&gt;
                                              &lt;/VisualStateGroup.Transitions&gt;
                                              &lt;VisualState x:Name="Normal"/&gt;
                                              &lt;VisualState x:Name="MouseOver"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Stroke).(SolidColorBrush.Color)" To="#FF3C7FB1"/&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Fill)"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ExpanderArrowHoverFill}"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="arrow" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#222"/&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                              &lt;VisualState x:Name="Pressed"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Stroke).(SolidColorBrush.Color)" To="#FF526C7B"/&gt;
                                                      &lt;DoubleAnimation BeginTime="0" Storyboard.TargetName="circle" Storyboard.TargetProperty="StrokeThickness" To="1.5"/&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle" Storyboard.TargetProperty="(Ellipse.Fill)"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ExpanderArrowPressedFill}"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                      &lt;ColorAnimation BeginTime="0" Storyboard.TargetName="arrow" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#FF003366"/&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                          &lt;/VisualStateGroup&gt;
                                          &lt;VisualStateGroup x:Name="FocusStates"&gt;
                                              &lt;VisualState x:Name="Focused"&gt;
                                                  &lt;Storyboard&gt;
                                                      &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility"&gt;
                                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/&gt;
                                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                                  &lt;/Storyboard&gt;
                                              &lt;/VisualState&gt;
                                              &lt;VisualState x:Name="Unfocused"/&gt;
                                          &lt;/VisualStateGroup&gt;
                                      &lt;/VisualStateManager.VisualStateGroups&gt;
                                      &lt;Border Padding="{TemplateBinding Padding}"&gt;
                                          &lt;Grid Background="Transparent"&gt;
                                              &lt;Grid.ColumnDefinitions&gt;
                                                  &lt;ColumnDefinition Width="19"/&gt;
                                                  &lt;ColumnDefinition Width="*"/&gt;
                                              &lt;/Grid.ColumnDefinitions&gt;
                                              &lt;Grid HorizontalAlignment="Left" VerticalAlignment="Top"&gt;
                                                  &lt;Grid.RenderTransform&gt;
                                                      &lt;TransformGroup&gt;
                                                          &lt;TransformGroup.Children&gt;
                                                              &lt;TransformCollection&gt;
                                                                  &lt;RotateTransform Angle="180" CenterX="9.5" CenterY="9.5"/&gt;
                                                              &lt;/TransformCollection&gt;
                                                          &lt;/TransformGroup.Children&gt;
                                                      &lt;/TransformGroup&gt;
                                                  &lt;/Grid.RenderTransform&gt;
                                                  &lt;Ellipse x:Name="circle" Fill="{StaticResource ExpanderArrowFill}" Stroke="DarkGray" Height="19" HorizontalAlignment="Center" VerticalAlignment="Center" Width="19"/&gt;
                                                  &lt;Path x:Name="arrow" Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 1,1.5 L 4.5,5 L 8,1.5"/&gt;
                                              &lt;/Grid&gt;
                                              &lt;ContentPresenter x:Name="header" HorizontalAlignment="Stretch" Margin="4,0,0,0" VerticalAlignment="Center" Grid.Column="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/&gt;
                                          &lt;/Grid&gt;
                                      &lt;/Border&gt;
                                      &lt;Rectangle x:Name="FocusVisualElement" Stroke="#FF448DCA" StrokeThickness="1" IsHitTestVisible="false" Visibility="Collapsed"/&gt;
                                  &lt;/Grid&gt;
                              &lt;/ControlTemplate&gt;
                          &lt;/Grid.Resources&gt;
                          &lt;VisualStateManager.VisualStateGroups&gt;
                              &lt;VisualStateGroup x:Name="CommonStates"&gt;
                                  &lt;VisualStateGroup.Transitions&gt;
                                      &lt;VisualTransition GeneratedDuration="0"/&gt;
                                  &lt;/VisualStateGroup.Transitions&gt;
                                  &lt;VisualState x:Name="Normal"/&gt;
                                  &lt;VisualState x:Name="Disabled"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/VisualState&gt;
                              &lt;/VisualStateGroup&gt;
                              &lt;VisualStateGroup x:Name="FocusStates"&gt;
                                  &lt;VisualState x:Name="Focused"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/VisualState&gt;
                                  &lt;VisualState x:Name="Unfocused"/&gt;
                              &lt;/VisualStateGroup&gt;
                              &lt;VisualStateGroup x:Name="ExpansionStates"&gt;
                                  &lt;VisualStateGroup.Transitions&gt;
                                      &lt;VisualTransition GeneratedDuration="0"/&gt;
                                  &lt;/VisualStateGroup.Transitions&gt;
                                  &lt;VisualState x:Name="Collapsed"/&gt;
                                  &lt;VisualState x:Name="Expanded"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="Visibility"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/VisualState&gt;
                              &lt;/VisualStateGroup&gt;
                              &lt;VisualStateGroup x:Name="ExpandDirectionStates"&gt;
                                  &lt;VisualStateGroup.Transitions&gt;
                                      &lt;VisualTransition GeneratedDuration="0"/&gt;
                                  &lt;/VisualStateGroup.Transitions&gt;
                                  &lt;VisualState x:Name="ExpandDown"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="rd1" Storyboard.TargetProperty="Height"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="*"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="cd0" Storyboard.TargetProperty="Width"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="*"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/VisualState&gt;
                                  &lt;VisualState x:Name="ExpandUp"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="Template"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ExpanderUpHeaderTemplate}"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.Row)"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="1"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.Row)"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="0"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="rd0" Storyboard.TargetProperty="Height"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="*"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                          &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="cd0" Storyboard.TargetProperty="Width"&gt;
                                              &lt;DiscreteObjectKeyFrame KeyTime="0" Value="*"/&gt;
                                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/VisualState&gt;
                              &lt;/VisualStateGroup&gt;
                          &lt;/VisualStateManager.VisualStateGroups&gt;
                          &lt;Border x:Name="Background" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3"&gt;
                              &lt;Grid&gt;
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition x:Name="cd0" Width="Auto"/&gt;
                                      &lt;ColumnDefinition x:Name="cd1" Width="Auto"/&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
                                  &lt;Grid.RowDefinitions&gt;
                                      &lt;RowDefinition x:Name="rd0" Height="Auto"/&gt;
                                      &lt;RowDefinition x:Name="rd1" Height="Auto"/&gt;
                                  &lt;/Grid.RowDefinitions&gt;
                                  &lt;ToggleButton x:Name="ExpanderButton" Margin="1" MinHeight="0" MinWidth="0" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" Template="{StaticResource ExpanderDownHeaderTemplate}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" IsChecked="{TemplateBinding IsExpanded}" BorderBrush="{x:Null}"/&gt;
                                  &lt;ContentControl x:Name="ExpandSite" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Collapsed" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Grid.Column="0" Grid.Row="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/&gt;
                              &lt;/Grid&gt;
                          &lt;/Border&gt;
                          &lt;Border x:Name="DisabledVisualElement" IsHitTestVisible="false" Opacity="0" Background="Transparent" CornerRadius="3"/&gt;
                          &lt;Border x:Name="FocusVisualElement" IsHitTestVisible="false" Visibility="Collapsed" BorderThickness="1" CornerRadius="3"&gt;
                              &lt;!--&lt;Border.BorderBrush&gt;
                                  &lt;LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"&gt;
                                      &lt;GradientStop Color="#FFA3AEB9"/&gt;
                                      &lt;GradientStop Color="#FF8399A9" Offset="0.375"/&gt;
                                      &lt;GradientStop Color="#FF718597" Offset="0.375"/&gt;
                                      &lt;GradientStop Color="#FF617584" Offset="1"/&gt;
                                  &lt;/LinearGradientBrush&gt;
                              &lt;/Border.BorderBrush&gt;--&gt;
                          &lt;/Border&gt;
                      &lt;/Grid&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>