How to make a button flat style in wpf? I've tried BasedOn property but it does not work.
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
If you just need to make the button "invisible" but highlightable:
bb.Background = new SolidColorBrush(Colors.White); bb.BorderBrush = new SolidColorBrush(Colors.White);
More simple solution here using already defined ToolBar button style :
Just to get you started:
Then you have one millon other ways to do it, even changing the
ControlTemplate
to complete redefine the ButtonTo add to Eduardo's answer, this solution gets rid of any extra styling such as the border around the button if the thickness is set to 0.
You can add extra styling as needed:
Quick solution: Embed the button in a
<ToolBar/>
Disclaimer: Will add a toolbar chrome, may be an issue in some cases. (Thanks Indeera)