Wpf button problem
-
In window form, the control "ToolStripButton" has a property "CheckOnClick". When the button is click, the button is checked, once it's clicked another time, the button is unchecked. I want to have the same function like this button in wpf. But there are no existing controls like this one. Do you know which control have similar function like this? thanks, Eric
-
In window form, the control "ToolStripButton" has a property "CheckOnClick". When the button is click, the button is checked, once it's clicked another time, the button is unchecked. I want to have the same function like this button in wpf. But there are no existing controls like this one. Do you know which control have similar function like this? thanks, Eric
You can use a toggle button. That has the checked property. http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.togglebutton.aspx Example with an image in the button: Hope this helps, Bart EDIT: somehow it did not display all code so I ignore HTML tags now.