Questions tagged [richtextblock]

Represents a rich text display container that supports formatted text, hyperlinks, inline images, and other rich content. RichTextBlock supports a built-in overflow model.

Represents a control that displays read-only rich text.

69 questions
0
votes
1 answer

Determining the tapped paragraph using the 'DoubleTapped' event on RichTextBlock

I'm trying to do something along the lines of a paragraph-based interaction, like many ebook readers do (they let you click a paragraph and show a small menu with a few options etc). The thing I'm stuck on is determining a paragraph clicked/tapped…
Reynevan
  • 1,475
  • 1
  • 18
  • 35
0
votes
1 answer

WPF - Trying to Append Textblock Texts throws "Object Reference not set to an instance of an object" error

So, I just started using WPF. I'm trying to create a program to speed up the process of making cards. I'm currently struggling trying to append the text of two text blocks into a richtextblock (In order to create the description of a card with its…
0
votes
1 answer

UWP RichTextBlock localization

A while back I have created some pages in UWP with several RichTextBlock controls. Problem is now I have to localize those RickTextBlock controls, and each have specific formatting tags (Paragraph, Bold, Underline, Span, etc...). Unlike other…
Jean-Marc
  • 73
  • 9
0
votes
0 answers

Finding the best way to show html text in RichTextBlock

I have some string like "Some tmp string with text " or "Some tmp string with text" or with other Html format. The Requirement is to show this text with the same format in RichTextBlock. To do this, I tried to make some thing like this: …
0
votes
2 answers

Capture RichTextBlock Hyperlink events

I'm trying to capture the click event of Hyperlinks inside a dynamically generated RichTextBlock. I'm dynamically generating the contents of a richtextblock and then applying them with XamlReader. The content can vary quite a bit, so I can't…
user2950509
  • 1,018
  • 2
  • 14
  • 37
0
votes
1 answer

Get Visible Text from RichTextBlock

In a UWP app, I am using a RichTextBlock that gets populated with some content. It has word wrapping enabled and has a max lines set so that regardless of the length of its content, it will only show a certain number of lines of rich text. I'd like…
0
votes
0 answers

Adding list of items in Richtextblock in uwp to print the list of items?

I am creating the UWP application. I want to add the printing feature to my project. So that i am using RichTextBlock to send the page to preview. All Preview is working fine. But i have huge error when the list of items get in run time i.e(From…
G.suren
  • 107
  • 3
  • 10
0
votes
1 answer

RichTextBlock Styling in C#

I have a string in the format: some text more text even more text I would like to make the text surrounded by the strong tags bold in my richtextblock. How would I go about doing this?
0
votes
1 answer

Create custom inline element for RichTextBlock

is it possible to create a custom inline object like "Run" and "Span" in RichTextBlock? I didn't find any example or samples. Thank you!
codelab
  • 406
  • 3
  • 14
0
votes
0 answers

RichTextBlock overflow is missing the first line of text

I've got a Grid that is dynamically sized based on the size of the window it is in. The grid has three children: an Image, a RichTextBlock, and a RichTextBlockOverflow. When the window is sized down enough to ensure that the height of the…
K Mehta
  • 10,323
  • 4
  • 46
  • 76
0
votes
1 answer

RichTextBlock text line count

I am working on Windows Phone 8.1 application and I got this issue: I have a RichTextBlock control which holds my text, if my control height is bigger than my screen I need to scroll line by line automaticly while the user reads the text. Is there…
Pavel Durov
  • 1,287
  • 2
  • 13
  • 28
0
votes
1 answer

Measuring and displaying are different in UWP

I wanted to implement itemsControl printing with page breaks like it's described in the following blog: http://blogs.u2u.be/diederik/post/2013/05/21/Printing-a-XAML-ItemsControl-from-a-Windows-8-Store-app.aspx The problem is that in Windows 10 it…
Access Denied
  • 8,723
  • 4
  • 42
  • 72
0
votes
1 answer

Can view RTF in Silverlight

I have a Silverlight control 5 that is hosted on a WebPage. Im trying to load in the RTF text into the Silverlight RichTextBlock but I cant find anyway of donig this. The info on MSDN refers to adding new content to the control but not…
IEnumerable
  • 3,610
  • 14
  • 49
  • 78
0
votes
1 answer

How to put XAML text into richtextblock?

I load the data from the network, and then using the library Html2Xaml generating XAML from the resulting HTML file and binds the resulting string to RichTextBlock.DataContext, but when you open the page is blank, what am I doing…
user2995099
  • 35
  • 2
  • 8
0
votes
1 answer

Editable text block

A couple of weeks ago I was reading through plans for WordPress. One item came to mind today: editable text block. Thinking of it today, seems to me ExtJS would do the trick. Have a Div; on click, open some sort of popup containing the text with at…