在Silverlight中阻止RichTextBox中的文本条目

时间:2012-03-27 13:08:46

标签: silverlight richtextbox

我在我的网站上使用RichTextBox。我只想在其中加入我的主页的描述文本。如何阻止文本输入?

这是我的代码:

<RichTextBox Name="RTBHome" TextWrapping="Wrap"  Height="49" >
    <Paragraph>
        <Run Text="Welcome to FluxCatcher , want to get your tweet, the informations about our favourite website"/>
        <LineBreak></LineBreak>
        <Run Text="and so much more in the same page ? So let's subscribe now"/>
    </Paragraph>
</RichTextBox>

1 个答案:

答案 0 :(得分:2)

RichTextBlock就是你所追求的:

http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextblock(v=vs.95).aspx

  

表示显示只读富文本的控件。

相关问题