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\'v
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:
<Style x:Key="TransparentStyle" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent">
<ContentPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
And the button:
<Button Style="{StaticResource TransparentStyle}"/>
Programmatically, you can do this:
btn.BorderBrush = new SolidColorBrush(Colors.Transparent);