Based from this link How do you completely remove the button border in wpf? The border of button can be remove completely by the following way which works exactly like what I want:
<Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">SomeText</Button>
Now I want to define some additional style in my ResourceDictionary
but I'm not sure how to refer to another style. Usually I refer to custom style thru following way:
<Button Style="someSelfDefinedStyle">SomeText</Button>
What can I do if I want to remove the border of button and adding additional styles on top of it?
Update:
I've also tried the following way:
<Style x:Key="someSelfDefinedStyle" BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
<!--Add additional styling here-->
</Style>
And its giving me the below error:
'System.Windows.SystemThemeKey' cannot be converted to type 'System.Windows.Style'