As soon as i set the readonly property to true,the Transparency of the RichTextBox becomes greyish, so my RichTextBox no longer looks transparent.
一旦我将readonly属性设置为true, RichTextBox的透明度就会变得灰蒙蒙的,因此我的RichTextBox看起来不再透明。
1 个解决方案
#1
1
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.
您应该能够使用Expression Blend来提取RichTextBox的默认控件模板——它听起来好像有一个触发器,当属性发生变化时,它会导致灰色,所以只需删除它,并将修改后的模板保存到解决方案中的资源字典中。
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.
我很想帮你做这个,但是当我用Blend打开一个新的Silverlight项目的时候,它并没有识别RichTextBox——我猜我最近安装的Silverlight版本不够,因为我们只使用WPF,没有Silverlight。
#1
1
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.
您应该能够使用Expression Blend来提取RichTextBox的默认控件模板——它听起来好像有一个触发器,当属性发生变化时,它会导致灰色,所以只需删除它,并将修改后的模板保存到解决方案中的资源字典中。
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.
我很想帮你做这个,但是当我用Blend打开一个新的Silverlight项目的时候,它并没有识别RichTextBox——我猜我最近安装的Silverlight版本不够,因为我们只使用WPF,没有Silverlight。