I'm trying to create a button that has an image in it and no border - just like the Firefox toolbar buttons before you hover over them and see the full button.
I've tried setting the BorderBrush
to Transparent
, BorderThickness
to 0
, and also tried BorderBrush="{x:Null}"
, but you can still see the outline of the button.
You may have to change the button template, this will give you a button with no frame what so ever, but also without any press or disabled effect:
And the button:
Try this
I don't know why others haven't pointed out that this question is duplicated with this one with accepted answer.
I quote here the solution: You need to override the
ControlTemplate
of theButton
:Programmatically, you can do this:
You can use Hyperlink instead of Button, like this:
Why don't you set both
Background & BorderBrush
by samebrush