<Stylex:key= "Noborderbtnstyle"TargetType="{x:type Button}"> <Setter Property= "Focusable"Value= "false"/> <Setter Property= "Template"> <Setter.value> <ControlTemplateTargetType="{x:type Button}"> <Gridx:name= "Grid"Background= "#00000000"> <visualstatemanager.visualstategroups> <VisualStateGroupx:name= "CommonStates"> <VisualStatex:name= "Normal"/> <VisualStatex:name= "MouseOver"/> <VisualStatex:name= "Pressed"/> <VisualStatex:name= "Disabled"/> </VisualStateGroup> </visualstatemanager.visualstategroups> <ContentPresenterMargin= "0"Opacity= "1"HorizontalAlignment= "Center"/> </Grid> <controltemplate.triggers> <Trigger Property= "IsFocused"Value= "True"/> <Trigger Property= "isdefaulted"Value= "True"/> <Trigger Property= "IsMouseOver"Value= "True"/> <Trigger Property= "IsPressed"Value= "True"> <Setter Property= "Background"TargetName= "Grid"Value= "#FF0A861A"/> <Setter Property= "Opacity"TargetName= "Grid"Value= "0.565"/> </Trigger> <Trigger Property= "IsEnabled"Value= "False"/> </controltemplate.triggers> </ControlTemplate> </Setter.value> </Setter> <!--<setter property= "MinWidth" value= "118"/> - </Style>
WPF style for a button that resembles a TextBlock appearance