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
2
votes
1 answer

How to display an string in an RichTextBlock - Windows Store Apps

I'm creating an Windows 8.1 Store Application, and I need to distribute a string over a RichTextBlock and an RichtTextBlockOverflow but I can't find a solution on the internet. Any help would be very nice!
Niels Verhoeven
  • 163
  • 1
  • 14
2
votes
1 answer

How do you detect if a RichTextBlock has overflow content in Windows Store apps?

I can't seem to ever get HasOverflowContent to fire on a RichTextBlock, even if I force it to update its layout. Here is what I've tried: public MainPage() { this.InitializeComponent(); RichTextBlock block = new RichTextBlock(); …
Alexandru
  • 12,264
  • 17
  • 113
  • 208
2
votes
1 answer

Tapped event of RichTextblock

Why we can not handle the tapped event of richtextblock, I want to get the tapped point of the richtextblock or richtextblockoverflow, how to workaround?
2
votes
1 answer

Insert button into richtextblock

In my Windows Store app, I have a RichTextColumns control containing a richtextblock that successfully loads its content from an HTML file. I can get it to show images if they are in the HTML file, but I need to: a) Insert content (images) that are…
John Brink
  • 546
  • 2
  • 8
  • 23
2
votes
0 answers

C# Metro Windows 8 RichTextBlock Overflow and FlipView

I have some problems with new Metro design in Windows 8. I'm building simple e-reader app, and want to use two-column pages. So, my choice is FlipView and RichTextBlock with overflows. But after adding two pages, overflow doesn't have overflow…
Dmitriy Bondarchuk
  • 111
  • 1
  • 2
  • 9
1
vote
1 answer

UWP: difference between RichEditBox and RichTextBlock in displaying some fonts

I have a project in UWP where I need to display the same text in a RichEditBox and in a RichTextBlock. For some fonts (e.g. Courier), this is pretty ok and no big problems, but for other fonts (like Arial) the difference is pretty…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
1
vote
1 answer

UWP: Compute text height in a RichTextBlock gives weird results

I need a reliable method to get the height of the text contained in a RichTextBlock, even before it is actually drawn on the scene. Using the normal Measure() method produces a weird result, as it can be seen in the MVCE:…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
1
vote
0 answers

RichTextBlock hides its content when programmatically updated, twice

While working on a small UWP application that displays rich text and updates portions of it based on model changes, I've stumbled upon a really strange RichTextBlock bug. I'd appreciate if someone could provide an insight on this RichTextBlock…
DK.
  • 3,173
  • 24
  • 33
1
vote
1 answer

RichTextBlock HasOverflow is incorrect

I am setting up printing functionality in my app. To do this, I have two pages: PrintPage and OverflowPage. Both inherit from my custom abstract Page, PrintablePage. Here are the XAML layouts for them: PrintPage.xaml
shawnseanshaun
  • 1,071
  • 1
  • 13
  • 25
1
vote
1 answer

RichTextBlock PointerPressedEvent - pointer position when selecting a text

I am developping a windows store application. In my page, I have a RichTextBlock (and not a RichTextBox as in WPF). I'd like to subscribe to the PointerPressed event. In my constructor, I have the following rtb.PointerPressed +=…
Daniel
  • 9,312
  • 3
  • 48
  • 48
1
vote
1 answer

Hyperlink in RichTextBlock makes the application crash on clicking

in my Windows Phone 8.1 application I have a RichTextBlock with Hyperlinks in it. I've added some block of code in the click event of the Hyperlink. The problem is that whenever I click on the Hyperlink, my application crashes with an 'Access…
thatrohit
  • 177
  • 8
1
vote
2 answers

Binding list of paragraphs to RichTextBlock

Right now, I have the data I need binding to a RichTextBlock, but I'm unable to format it, since I'm just using one long string bound to the run on a paragraph setup in my RichTextBlock. Obviously, this isn't ideal. I would like to be able to change…
m0ngr31
  • 791
  • 13
  • 29
1
vote
1 answer

Detect hyperlinks in a RichTextBlock's plain text considering dynamic content

Supposing we're having this case of a RichTextBlock : Is it possible to detect possible hyperlinks in the…
VasileF
  • 2,856
  • 2
  • 23
  • 36
1
vote
1 answer

How to insert nested lists (or nested block elements) into RichTextBlock?

Global task: display Markdown text in Windows Store App. How I think to do it: Markdown -> HTML -> XAML RichTextBlock More specific purpose: display nested lists like this: item 1 item 2 subitem 1 subitem 2 + img-tag + test text + blockquote +…
Viktor Lova
  • 4,776
  • 2
  • 19
  • 25
1
vote
1 answer

Performance issue when show RichTextBlock inside ScrollViewer

I have a RichTextBlock in a ScrollViewer, when the content of the RichTextBlock is too long, there will be very serious performance issue. FYI, the actual height of the RichTextBlock is about 580000. How can I solve this problem?