RichTextBox

Hi,

Does the RichTextBox by default contain all the toolbars available as in asp.net If so what are the properties you have to configure to get it E.g like the one I am able to type this message in

Any help would really be appreciated.




Answer this question

RichTextBox

  • Jonathan Dhaene

    Nope.
    But I believe you can implement your own toolbars for
    RichTextBox very easily, since the RichTextBox control in WPF is quite flexible, you can embed Bold, Italic, HyperLink, Span among many other formatting elements inside it, and you can even embed any controls for instance Button, Label etc directly into the RichTextBox control, and this capability makes it even more powerful and flexible than the DHTML+ JavaScript based text editor.

    Sheva



  • timkur

    Thank you for the advice.

    It is a shame though, I just needed the standard toolbars. Hope they impement it later though, saves a lot of time if you just need the standard functionality of the richt textbox.

    Jaco



  • Raj Kasi - MSFT

    Thanks but I know the richtextbox has scrollbars, but I wanted the standard toolbar that displays the edit, text alignment, bulleted list, etc by default.
  • Zu Kim

    huh

    RichTextBox does have basic toolbars, just turn them on

    <RichTextBox Height="143" FontStretch="Normal" FontFamily="Arial" Width="274" Name="RichTextBox1" FontStyle="Normal" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" FontSize="12" FontWeight="Normal" />

    The Span, Italic etc is very nice but rendering grinds to a halt with any decent amount of inlines added.

    Ron @ Mobiform

    Aurora XAML Designer - http://www.mobiform.com


  • RichTextBox