Here is my button:
<Button
x:Name="buttonClear"
Width="74"
Height="52"
Margin="3,175,0,0"
Padding="8,1,8,5"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Content="C"
FontSize="24"
FontWeight="Normal"
FocusVisualPrimaryBrush="Transparent"
FocusVisualSecondaryThickness="0"
Style="{ThemeResource ButtonRevealStyle}"
Click="ButtonClear_Click" />
As you can see, I have added:
FocusVisualPrimaryBrush="Transparent"
FocusVisualSecondaryThickness="0"
I thought it would get rid of the gray border that shows when you hover your mouse pointer on the button. But it didn't work.
I also tried adding the following to App.xaml:
<Application.Resources>
<SolidColorBrush x:Key="ButtonBackgroundPointerOver">Transparent</SolidColorBrush>
</Application.Resources>
Still no result. Do I have to reference the key somewhere else?