How to disable border of WPF button when click it?
Posted
by Ekkapop
on Stack Overflow
See other posts from Stack Overflow
or by Ekkapop
Published on 2009-11-26T04:31:39Z
Indexed on
2010/04/10
0:33 UTC
Read the original article
Hit count: 1034
wpf
|wpf-styles
How to disable border of WPF button when I click it?
I have create button like below, everything work fine except when I click on the button.
<Button Background="Transparent" BorderBrush="Transparent">
<Button.Content>
<StackPanel>
<Image Source="xxx.png" />
<TextBlock Text="Change Password" />
</StackPanel>
</Button.Content>
</Button>
When I click the button, it has border like below.
I try to create style for FocusVisualStyle
of the button but it don't work as I expect, this problem also occur when I set IsDefault="True"
too.
© Stack Overflow or respective owner