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

Convert simple HTML to a RichTextBlock

I am starting with Windows 8 and I am trying to convert HTML to a RichTextBlock. I have read that I could use this function : HtmlUtilities.ConvertToText in a TextBlock but I can't find a way to use this function in a RichTextBlock! From what I…
Tiago Almeida
  • 14,081
  • 3
  • 67
  • 82
4
votes
1 answer

[UWP][C#] Adding text to RichTextBlock

First of all I am completely new into both XAML and C#, so please forgive me for some stupid errors. An explanation is much more appreciated. I've been struggling this last hours trying to figure out one of the simplest things: how to add text to a…
MasterArch
  • 63
  • 1
  • 5
3
votes
1 answer

RichTextBlock Selected Text UWP

I would like to highlight the selected text in a RichTextBlock, but when I click the "btnHighlight" button after selecting the text, the text that is highlighted does not match the selection (Perhaps because of hyperlinks but how can you solve it?).…
Jimmy
  • 45
  • 5
3
votes
0 answers

Crash on clicking on hyperlink in RichTextBlock

I'm building a chat app where I use several RichTextBlock for displaying chat messages. Some of them contain one or more Hyperlink objects. My problem is that when I click on one of these hyperlinks the app crashes with a Access Violation exception.…
Luke47
  • 31
  • 2
3
votes
1 answer

Auto detect URL, phone number, email in TextBlock

I would like to automatically highlight URL, Email and phone number in UWP. It is possible in Android but it seems this features has been forgotten by Microsoft. In my use case, I get the text from a web service, so I don't know the text format…
Samuel LIOULT
  • 594
  • 5
  • 21
3
votes
0 answers

Adding a RichTextBlockOverflow to the visual tree from ViewModel

I'm building an e-reader type application as a Windows 8.1/WP8.1 Universal app. My text is contained in a FlipView that uses an ObservableCollection as its source. Each FrameworkElement is either a RichTextBlock or a…
3
votes
1 answer

Load HTMl in RichTextBlock in metro apps

I am going through some problem In webview, In my webview I am loading local HTMl file with images(Converted as Base64 String) & adding CSS as per our requirement like this, MainView.NavigateToString(css.ToString()); //CSS is String…
Kumar
  • 864
  • 1
  • 22
  • 46
3
votes
1 answer

RichTextBlockOverflow.HasOverflowContent always false in Windows 8 Metro app

since you have to support multiple screen resolutions in Windows 8 Metro Apps I want to split up my RichTextBlock to show text that would be cut off in a RichTextBlockOverflow control (or multiple controls, depending how much text I have to…
2
votes
1 answer

How to show html format using RichTextBlock

I am currently working on Windows 10 UWP project. I am getting a HTML file from the server and I want show this in UWP app.I want to use RichTextBlock instead of web view.I tried github code here which has used Html2Xaml library but I'm getting…
2
votes
1 answer

UWP how to get text from RichEditBox to RichTextBlock

If i have RichEditBox what contains some text how could i get all of that text and move it to RichTextBlock? Example text below: Closest what i have got looks like following I have used Microsoft own example in this project. I would like also keep…
2
votes
1 answer

Stretch InlineUIContainer to take 100% of the RichTextBlock's width?

I've got a simple InlineUIContainer inside a Paragraph, inside a RichTextBlock. How can I make the content inside the InlineUIContainer take the full width of the RichTextBlock? Setting the HorizontalAlignment property obviously does nothing, so…
user2950509
  • 1,018
  • 2
  • 14
  • 37
2
votes
1 answer

How to change background color of a custom span?

I have a RichTextBlock that contains some custom Span. I want when Right-Tapped event fired I change the Background color of that span. I can access to that span but It doesn't have Background property. how can I do it?
Maryam
  • 883
  • 10
  • 24
2
votes
1 answer

How to strike out the texts in Paragraph?

I am developing an app for Windows 8.1 The App parses HTML codes, and displays the contents on RichTextBlock. Anyway, I'm trying to display some texts with 'StrikeThrough' line. like shown below. I searched through the web, but I just found that…
2
votes
0 answers

Windows Phone RichTextBlock image inside a hyperlink

I am developing application on Windows Phone 8.1. I am using RichTextBlock to display rich content: text, images, hyperlinks. Here is how to create image for rich text block: new InlineUIContainer { Child = new Image { Source = new…
Andrei
  • 42,814
  • 35
  • 154
  • 218
2
votes
0 answers

Text and Image together in a fixed width overflowing-column component in iOS

I want to combine text and images in a view (not using UIWebView) and I want to make the content appear according to the width of the inner view predefined by me. If it's content overflows the content size of that inner view, I want it to overflow…
frankish
  • 6,738
  • 9
  • 49
  • 100
1
2 3 4 5