I have a simple Silverlight application that has a Page1.xaml . This Page1.xaml has got a RichTextBox1 and a Button1 on it.
I would like to type Hello into this RichTextBox1 by clicking Button1. The following code types “Hello” for me in RichTextBox1 in regular font. I would like “Hello” to be typed in Bold. I would be grateful for modification of this code which will achieve this for me. Please note I am using Silverlight 4 in Visual Studio 2010. Thank you for your help in anticipation.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
txtNotes.Selection.Text = "Hello"