RichTextBox.AcceptsReturn Property
Silverlight
Gets or sets a value that determines whether the RichTextBox allows and displays the newline or return characters when the ENTER or RETURN keys are pressed.
Namespace: System.Windows.Controls
Assembly: System.Windows (in System.Windows.dll)
<RichTextBox AcceptsReturn="bool"/>
Property Value
Type: System.Booleantrue if the RichTextBox allows newline characters; otherwise, false. The default is true.
You can disable multi-line content in a RichTextBox control by using the AcceptsReturn property. Use the HorizontalScrollBarVisibility or VerticalScrollBarVisibility to enable the horizontal scrollbars or the vertical scrollbars.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.