private void SubmitButton_Click(object sender, RoutedEventArgs e)
{
myWeb.Source = new Uri ("https://www.google.com/search?tbm=isch&q=" + titleWord.Text + " " + boldWord.Text);
}
I got a button that searches google images. There is a textbox input for a Title (named titleWord) and a RichTextBox input (with the Run named boldWord). I only want the bold words in the RichTextBox to be searched, not the whole text.
<RichTextBox Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Left" Height="150" Margin="10,4,0,0" Grid.Row="2" VerticalAlignment="Top" Width="220">
<FlowDocument>
<Paragraph>
<Run Name="boldWord" />
</Paragraph>
</FlowDocument>
</RichTextBox>