private void Find_Click(object sender, RoutedEventArgs e) { ContentTextOutput.Text = ""; var mySemanticTextQuery = new Windows.Data.Text.SemanticTextQuery(FindQueryText.Text); IReadOnlyList<Windows.Data.Text.TextSegment> ranges = mySemanticTextQuery.Find(ContentText.Text); rootPage.HighlightRanges(ContentTextOutput, ContentText.Text, ranges); }
private void Find_Click(object sender, RoutedEventArgs e) { ContentTextOutput.Text = ""; var mySemanticTextQuery = new Windows.Data.Text.SemanticTextQuery(FindQueryText.Text); IReadOnlyList <Windows.Data.Text.TextSegment> ranges = mySemanticTextQuery.Find(ContentText.Text); rootPage.HighlightRanges(ContentTextOutput, ContentText.Text, ranges); }