开发者

How to make a RichTextBox Transparent as well as Read-only Silverlight

开发者 https://www.devze.com 2022-12-21 21:12 出处:网络
As soon as i set the readonly property to true,the Transparency of the R开发者_JAVA百科ichTextBox becomes greyish, so my RichTextBox no longer looks transparent.You should be able to extract the defau

As soon as i set the readonly property to true,the Transparency of the R开发者_JAVA百科ichTextBox becomes greyish, so my RichTextBox no longer looks transparent.


You should be able to extract the default control template for the RichTextBox using Expression Blend - it sounds like there's a trigger in there that's causing the greyness when the property changes, so just remove that and save the amended template to a Resource Dictionary in your solution.

I'd have a go at doing this for you, but I when I opened a new Silverlight project in Blend it didn't recognise RichTextBox - I'm guessing that I don't have a recent enough version of Silverlight installed since we only use WPF, no Silverlight.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号