Prevent a readonly textbox from being grayed out in Silverlight

后端 未结 7 2094
天涯浪人
天涯浪人 2021-02-20 06:50

In Silverlight, How do I make a TextBox with IsReadOnly=\"True\" not become grayed out. The gray effect looks horrible with my app and I would like to disable it, o

7条回答
  •  清酒与你
    2021-02-20 06:53

    If you just want an equivalent of a block of text in HTML, that can be selected (which for some reason even Silverlight 4 is missing) you can shorten Graeme's answer slightly:

    
    

    You may even be able to remove the disabled states.

提交回复
热议问题