WPF CheckBox with "Button" appearance

Nelson Reis picture Nelson Reis · Jun 30, 2009 · Viewed 28.9k times · Source

I need a button-like control that can have a Checked property, so that when clicked it stays pressed.

I had that functionality in WinForms, with the CheckBox control, setting the Appearance property to "Button".

Can someone help me?

Answer

rmoore picture rmoore · Jun 30, 2009

Use a ToggleButton, it has all the functionality you see in a CheckBox since it is derived from it.