A read-only CheckBox in C# WPF

后端 未结 11 2058
南方客
南方客 2020-12-06 04:37

I am having a tricky problem, I want some slightly unusual behaviour from a checkbox and can\'t seem to figure it out. Any suggestions would be most welcome. The behaviour I

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 05:12

    Those two Properties are – IsHitTestVisible and Focusable Make thse two properties to False. This makes the readonly checkbox in WPF. So final XAML statement will be as follows for readonly checkbox in WPF –

提交回复
热议问题