Prevent a readonly textbox from being grayed out in Silverlight

后端 未结 7 2145
天涯浪人
天涯浪人 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-20 06:57

    I wanted to reduce the style to bare bone, and tested this with silverlight 4.0:

    
    

    It is almost a cheat, like saying:Hey silverligh, this textbox is a textblock! You should eventually add something in the TextBlock tag, to better reflect other TextBox properties.

提交回复
热议问题