Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Radio button does not show in toolbar

Is there any way to force a radio button or check box to show properly in a toolbar? The circle/check box always disappears once its placed inside a toolbar.

like image 309
AKoran Avatar asked May 24 '10 12:05

AKoran


1 Answers

By default, WPF overrides RadioButtons to make them look like toggle buttons. To eliminate this, place a panel inside the ToolBar and then put your RadioButton(s) in there.

<ToolBar>
   <StackPanel>
      <RadioButton Content="Radio Button" />
   </StackPanel>
</ToolBar>
like image 121
bufferz Avatar answered Nov 10 '22 11:11

bufferz