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
1
vote
1 answer

RichTextBlock scroll to specified offset

I have a RichTextBlock in a ScrollViewer. The content of the RichTextBlock is very long. How can I scroll to the specifed Offset (the offset of RichTextBlock) in code-behind?
1
vote
1 answer

Remove multiple content in XAML string

Hi I have a xaml string like this: SOME…
Keoz
  • 394
  • 2
  • 16
1
vote
1 answer

Copying Xaml RichTextBlock text with InlineUIContainers

I am working with some RichTextBlock objects that contain InlineUIContainer elements. I would like to be able to select and copy all of the text including the text contained in the InlineUIContainer. Currently, when I select all of the text in the…
joe_coolish
  • 7,201
  • 13
  • 64
  • 111
1
vote
1 answer

Adding RichTextBlockOverflow to FlipView

I have a book application that I am using the FlipView control to flip between pages of any selected chapter in the book the user is currently reading. I am dynamically creating the pages in and adding them as items in the FlipView control with the…
joe_coolish
  • 7,201
  • 13
  • 64
  • 111
0
votes
1 answer

Gutenberg Richtext generating "" in editor

I have used rich text element of Gutenberg, in editor i found this kind of entity coming when we are editing - https://prnt.sc/uqJZokTorIK_ , that is creating issue in layout, when we click its showing blank space. /** * WordPress dependencies …
0
votes
1 answer

Link feature missing in Wagtail RichTextBlock

I am creating a Wagtail ArticlePage class in models.py. As a part of the body field in my article, which is a StreamField, I created a 'paragraph' component, which is a blocks.RichTextBlock(). When I test it in the admin console, I can create the…
0
votes
1 answer

RichtTextBlock is not displaying multiple spaces present in the text

I'm trying to display some table data in RichTextBlock. The data contains several lines of text, and the text contains multiple spaces. I'm adding each line as Run objects to the Paragraph. string[] lines = tableData; Paragraph para…
0
votes
1 answer

Adaptive Card: What is the best way to display an arbitrary JSON object?

I'd like to generate an adaptive card that contains an arbitrary JSON object inside. I anticipate that the JSON object will be shallow. Maybe it will contain just a list of key-value pairs. But I won't know the structure of that JSON object…
Jim G.
  • 15,141
  • 22
  • 103
  • 166
0
votes
0 answers

UWP C# - Font auto size of TextBlock and RichTextBlock

How to force TexBlock and RichTextBlock to change FontSize so that the text fits in the window. When changing the text, if the text is too large, then it does not fit in the window. How to make it fit completely? viewBox is not suitable because…
Яша
  • 3
  • 2
0
votes
1 answer

How to convert HTML to RTF in UWP

I want to convert HTML to RichTextBlock in UWP. I found some answers in stackoverflow tried the code in following link link But when I try to bind html property in richtextblock controls it gives error saying The name "Properties" does not exist in…
0
votes
1 answer

UWP: How do I set the default tab size for a RichTextBlock?

I have a RichTextBlock in UWP. I need to configure how much space a tab is going to take: this is basically the same concept of the iOS primitive "defaultTabInterval":…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
0
votes
1 answer

Applying Style To RichTextBlock using Range Information in UWP

This code snippet comes from RichEditBox style application, Document.Selection.SetRange(paragraphStartIndex, paragraphStartIndex + data.Text.Length); Document.Selection.CharacterFormat.Strikethrough = FormatEffect.On; However, can we do similar…
Skynet094
  • 443
  • 4
  • 19
0
votes
0 answers

dotted underline in richtextblock

In Xamarin.UWP, I have created a custom renderer for label using richtextblock. Within the richtextblock, I have used hyperlink to enter text with the ability to click on it. Can I change the underline from straight to dotted?
Tek Mun
  • 97
  • 9
0
votes
1 answer

How can I change the Right-Click menu of a RichTextBlock in UWP

I want to override the right-click menu in a RichTextBlock or a TextBlock, I have been searching for the solution and tried using RightTappedEvent, but it did not fire when right tapped a chosen text, but it fired when I right tapped in elsewhere in…
Hongjia
  • 73
  • 6
0
votes
1 answer

Xamarin.UWP RichTextBlock Hanging Indentation

I used custom renderer to display a Label as RichTextBlock. Using Paragraph, there is a TextIndentProperty to indent first line. However, I also need "Hanging Indentation" found in RichEditBox or SetIndent found in ITextParagraphFormat. Is there a…
Tek Mun
  • 97
  • 9