How to set BackColor of a CheckBox in WPF -


in winform can set backcolor of checkbox

enter image description here

how do in wpf? try

<checkbox content="checkbox" background="red"/> 

but changes rectangle border color

enter image description here

i try

<checkbox>     <textblock text="checkbox" background="red"/> </checkbox> 

but changes text background color, not including rectangle

enter image description here

=======

thank solutions. think simplest way works me :)

if experiment little panels there:

<grid background="red" horizontalalignment="left">   <checkbox content="test" /> </grid> 

is pretty close want. tried myself ;-)


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

jquery - Javascript click event on a dynamically created button inside a loop -