I have just started with WPF and need specific feature for a checkbox:
- I want to change the shape from a box to a ellipse.
- Futher more there should be a color change (green = true, red = false) instead of cross.
The background: I have different sensors and want to enable/disable them via these checkboxes. I also thought about to use buttons instead of checkboxes, but I think the function is more given by the checkboxes.
I hope my description is understandable. Is it possible to define such a style- template?
Kind regards
Alex
You’re going to need to customize the Checkbox and create a Custom Template.
For that you need to change the default Checkbox Template.
What you want to do is play a little bit with the triggers and background to style it like you want. Notice the
CheckMarkproperty, you’ll probably want to keep itHidden