advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the sample RichTextBox code for this article.
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Mastering the WPF RichTextBox

Nearly everything about the the newest version of the RichTextBox has changed except its purpose as a formatting text editor control. Find out how you can take advantage of the new features. 


advertisement
he RichTextBox component in WPF/.NET 3.0 received a major upgrade compared to the previous version of the RichTextBox control that shipped with.NET 2.0. But with the expanded capability comes the need for additional APIs and different usage patterns. This article explores some of the advanced features of the WPF RichTextBox from both a XAML-based design standpoint, and explores how to work with it using C# code.


The Basics
You add a RichTextBox to your form using the XAML code:

 <RichTextBox x:Name="XAMLRichBox" SpellCheck.IsEnabled="True"
MinHeight="100"></RichTextBox>

It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement