Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restore default style for CheckBox on ToolBar?

Problem is that ToolBar w/o any permission changes style of placed CheckBox (instead of tick box it looks like normal button). I want to restore original look of CheckBox with a minimum code.

This problem is opposite to the problem described here: How can I apply the style of a ToolBar CheckBox to a regular CheckBox?

Any help, please?

like image 822
user603244 Avatar asked Jan 26 '12 13:01

user603244


2 Answers

You're probably looking for:

<CheckBox Style="{x:Null}" />

This should restore the default checkbox style.

like image 112
Louis Kottmann Avatar answered Sep 21 '22 16:09

Louis Kottmann


Well... it is not anarchy :o) this is the normal behavior from the toolbar. Maybe there is another way, but you can wrap your checkbox in a, let's say, Dockpanel to hide the style the Toolbar applies to the CheckBox.

Something like this would work:

<DockPanel>
    <CheckBox Content="Check 1"/>
    <CheckBox Content="Check 2"/>
</DockPanel>
like image 33
NestorArturo Avatar answered Sep 20 '22 16:09

NestorArturo