我想改变只读的彩色文本框如何在Silverlight 5的ReadOnly文本框中更改背景颜色?
它是可以改变默认颜色以白色
<Style TargetType="TextBox">
<Setter Property="Background"
Value="White"/>
<Setter Property="Foreground"
Value="Black"/>
</Style>
和文本框为
<TextBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" Height="18" Padding="0" IsReadOnly="True" Margin="3,0,3,0"/>
在此先感谢
是的,我检查该链接,以我注意能够改变颜色为白色 –