Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Checkbox without greying

In wpf forms, i have a checkbox which needs to be disabled without being greyed out.

x.xaml

<CheckBox Content="check" Name="AP" DockPanel.Dock="Top"
          IsChecked="{Binding Path=check}"    
          Margin="0,0,6,8" />

i tried which is not working

like image 896
senthilraja Avatar asked Mar 26 '26 17:03

senthilraja


1 Answers

<CheckBox IsHitTestVisible="False" Focusable="False" />

like image 195
quocte trumbuonlau Avatar answered Mar 29 '26 08:03

quocte trumbuonlau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!